[bugfix] update prototype

This commit is contained in:
Yuichi Nishiwaki 2015-08-05 09:03:09 +09:00
parent 537e5b0eed
commit 9d25be2e76
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}