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:
parent
3df8bd5436
commit
c4dac550a8
@ -763,8 +763,11 @@ static void Primary (ExprDesc* E)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Illegal primary. */
|
/* Illegal primary. Be sure to skip the token to avoid endless
|
||||||
|
* error loops.
|
||||||
|
*/
|
||||||
Error ("Expression expected");
|
Error ("Expression expected");
|
||||||
|
NextToken ();
|
||||||
ED_MakeConstAbsInt (E, 1);
|
ED_MakeConstAbsInt (E, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user