[bugfix] allocate pic_env values area for local variables

This commit is contained in:
Yuichi Nishiwaki 2013-11-04 15:32:26 -05:00
parent 76dadc8448
commit f5b98e38f8
1 changed files with 1 additions and 1 deletions

View File

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