Fixed bug in preprocessor process extraneous tokens.

This commit is contained in:
mougo 2022-04-25 00:23:24 +08:00
parent 90d1f7f199
commit 43b4c55a72
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}