Commit c14c2b23 authored by Russ Cox's avatar Russ Cox

fix 6a line number bug -

was incrementing lineno twice for
the \n after a // comment.

R=r
DELTA=3  (0 added, 2 deleted, 1 changed)
OCL=21984
CL=22021
parent a329471c
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment