Merge pull request #1671 from spiro-trikaliotis/pr-1634
Invalid flagged errors if token is missing
This commit is contained in:
commit
9088d66758
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue