diff options
Diffstat (limited to 'utils/cc/lexbody')
| -rw-r--r-- | utils/cc/lexbody | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/cc/lexbody b/utils/cc/lexbody index 6b226ada..d8e3f6eb 100644 --- a/utils/cc/lexbody +++ b/utils/cc/lexbody @@ -417,8 +417,10 @@ l1: if(c1 == '/') { for(;;) { c = GETC(); - if(c == '\n') - goto l1; + if(c == '\n') { + lineno++; + goto l0; + } if(c == EOF) { yyerror("eof in comment"); errorexit(); |
