From 43b4c55a72f4ad453f44fbfbfa2aced708cd0f2f Mon Sep 17 00:00:00 2001 From: mougo Date: Mon, 25 Apr 2022 00:23:24 +0800 Subject: [PATCH] Fixed bug in preprocessor process extraneous tokens. --- preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocess.c b/preprocess.c index 2bef487c6..cd8d1d893 100644 --- a/preprocess.c +++ b/preprocess.c @@ -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; }