[bugfix] wrong size for pic_proc allocation
This commit is contained in:
parent
49caf79ce6
commit
c2d7f3d1f2
|
@ -7,7 +7,7 @@ pic_proc_new(pic_state *pic, struct pic_irep *irep, struct pic_env *env)
|
|||
{
|
||||
struct pic_proc *proc;
|
||||
|
||||
proc = (struct pic_proc *)pic_obj_alloc(pic, sizeof(struct pic_proc *), PIC_TT_PROC);
|
||||
proc = (struct pic_proc *)pic_obj_alloc(pic, sizeof(struct pic_proc), PIC_TT_PROC);
|
||||
proc->cfunc_p = false;
|
||||
proc->u.irep = irep;
|
||||
proc->env = env;
|
||||
|
@ -19,7 +19,7 @@ pic_proc_new_cfunc(pic_state *pic, pic_func_t cfunc)
|
|||
{
|
||||
struct pic_proc *proc;
|
||||
|
||||
proc = (struct pic_proc *)pic_obj_alloc(pic, sizeof(struct pic_proc *), PIC_TT_PROC);
|
||||
proc = (struct pic_proc *)pic_obj_alloc(pic, sizeof(struct pic_proc), PIC_TT_PROC);
|
||||
proc->cfunc_p = true;
|
||||
proc->u.cfunc = cfunc;
|
||||
proc->env = NULL;
|
||||
|
|
Loading…
Reference in New Issue