Merge pull request #1671 from spiro-trikaliotis/pr-1634

Invalid flagged errors if token is missing
This commit is contained in:
Bob Andrews
2022-02-15 21:57:00 +01:00
committed by GitHub

View File

@@ -1226,11 +1226,11 @@ static ExprNode* Factor (void)
SB_GetLen (&CurTok.SVal) == 1) {
/* A character constant */
N = GenLiteralExpr (TgtTranslateChar (SB_At (&CurTok.SVal, 0)));
NextTok ();
} else {
N = GenLiteral0 (); /* Dummy */
Error ("Syntax error");
}
NextTok ();
break;
}
return N;