fix the mis-generation of code for state-functions

This commit is contained in:
Bill Currie 2002-05-13 20:11:33 +00:00
parent 91779b04f7
commit 2c0a20a887

View file

@ -396,7 +396,7 @@ opt_state_expr
$$ = 0;
}
| '[' const ',' { $<def>$ = current_def; }
def_name { current_def = $<def>5; } ']'
def_name { current_def = $<def>4; } ']'
{
if ($2->type == ex_integer)
convert_int ($2);