[bugfix] update prototype
This commit is contained in:
parent
537e5b0eed
commit
9d25be2e76
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue