Fix testing of arith_assign() value for $((a=15)).
Submitted by: Enache Adrian <enache@rdslink.ro>
This commit is contained in:
parent
f00a5ee894
commit
facd570df8
@ -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;
|
||||
} |
|
||||
|
Loading…
Reference in New Issue
Block a user