1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00

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
commit 9088d66758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;