[bugfix] allocate pic_env values area for local variables
This commit is contained in:
parent
76dadc8448
commit
f5b98e38f8
|
@ -67,7 +67,7 @@ new_local_scope(pic_state *pic, pic_value args, codegen_scope *scope)
|
|||
}
|
||||
new_scope->argc = i;
|
||||
new_scope->localc = l;
|
||||
new_scope->cv_tbl = (int *)pic_calloc(pic, i, sizeof(int));
|
||||
new_scope->cv_tbl = (int *)pic_calloc(pic, i + l, sizeof(int));
|
||||
|
||||
return new_scope;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue