diff --git a/extlib/benz/codegen.c b/extlib/benz/codegen.c index 84bd2d07..d4f2c187 100644 --- a/extlib/benz/codegen.c +++ b/extlib/benz/codegen.c @@ -782,15 +782,15 @@ index_local(codegen_context *cxt, pic_sym *sym) static int index_global(pic_state *pic, codegen_context *cxt, pic_sym *name) { - extern pic_value pic_vm_gref_slot(pic_state *, pic_sym *); + extern struct pic_box *pic_vm_gref_slot(pic_state *, pic_sym *); int pidx; - pic_value slot; + struct pic_box *slot; slot = pic_vm_gref_slot(pic, name); check_pool_size(pic, cxt); pidx = (int)cxt->plen++; - cxt->pool[pidx] = slot; + cxt->pool[pidx] = pic_obj_value(slot); return pidx; }