From 6b20e004e53d12e1c1fd0e419ce9bb1ed688a858 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 24 Jan 2014 17:11:15 +0900 Subject: [PATCH] [bugfix] var must be a symbol --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index bba802eb..b92dd138 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -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));