1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-12 17:30:50 +00:00

Small change to avoid endless error loops (aborted by the maximum error count)

if an unexpected token is encountered in Primary().


git-svn-id: svn://svn.cc65.org/cc65/trunk@3936 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-02-17 20:56:13 +00:00
parent 3df8bd5436
commit c4dac550a8

View File

@ -763,8 +763,11 @@ static void Primary (ExprDesc* E)
break;
default:
/* Illegal primary. */
/* Illegal primary. Be sure to skip the token to avoid endless
* error loops.
*/
Error ("Expression expected");
NextToken ();
ED_MakeConstAbsInt (E, 1);
break;
}