the first callinfo's argc is 1

This commit is contained in:
Yuichi Nishiwaki 2013-10-18 01:30:35 +09:00
parent a0e2089e56
commit 3d523a8081
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ pic_run(pic_state *pic, struct pic_proc *proc, pic_value args)
/* adjust call frame */
pic->sp[0] = pic_obj_value(proc);
pic->ci->argc = 0;
pic->ci->argc = 1;
pic->ci->pc = NULL;
pic->ci->sp = NULL;