Fix testing of arith_assign() value for $((a=15)).

Submitted by:	Enache Adrian <enache@rdslink.ro>
This commit is contained in:
schweikh 2003-09-07 10:14:56 +00:00
parent f00a5ee894
commit facd570df8

View File

@ -155,7 +155,7 @@ expr:
} |
ARITH_VAR ARITH_ASSIGN expr
{
if (arith_assign($1, $3) != 1)
if (arith_assign($1, $3) != 0)
yyerror("variable assignment error");
$$ = $3;
} |