?a: getc() needs to increment lineno if it gets \n from peekc

This commit is contained in:
aiju 2017-05-26 00:01:53 +00:00
parent 5fb666453a
commit ce17224eaf

View file

@ -458,6 +458,8 @@ getc(void)
c = peekc;
if(c != IGN) {
peekc = IGN;
if(c == '\n')
lineno++;
return c;
}
c = GETC();