mirror of https://github.com/rui314/chibicc
Fixed bug in preprocessor process extraneous tokens.
This commit is contained in:
parent
90d1f7f199
commit
43b4c55a72
|
@ -83,7 +83,7 @@ static Token *skip_line(Token *tok) {
|
|||
if (tok->at_bol)
|
||||
return tok;
|
||||
warn_tok(tok, "extra token");
|
||||
while (tok->at_bol)
|
||||
while (!tok->at_bol)
|
||||
tok = tok->next;
|
||||
return tok;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue