diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/cc/lexbody | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/cc/lexbody b/src/cmd/cc/lexbody index 869bf377c..27e40fe49 100644 --- a/src/cmd/cc/lexbody +++ b/src/cmd/cc/lexbody @@ -462,10 +462,8 @@ l1: if(c1 == '/') { for(;;) { c = GETC(); - if(c == '\n') { - lineno++; + if(c == '\n') goto l1; - } if(c == EOF) { yyerror("eof in comment"); errorexit(); |