[bugfix] var must be a symbol
This commit is contained in:
parent
237e8c26a6
commit
6b20e004e5
|
@ -826,7 +826,7 @@ codegen(codegen_state *state, pic_value obj)
|
|||
codegen(state, val);
|
||||
|
||||
var = pic_list_ref(pic, obj, 1);
|
||||
type = pic_sym(var);
|
||||
type = pic_sym(pic_list_ref(pic, var, 0));
|
||||
if (type == state->sGREF) {
|
||||
cxt->code[cxt->clen].insn = OP_GSET;
|
||||
cxt->code[cxt->clen].u.i = pic_int(pic_list_ref(pic, var, 1));
|
||||
|
|
Loading…
Reference in New Issue