diff options
Diffstat (limited to 'src/proc.c')
| -rw-r--r-- | src/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c index d4d57c6aa..f819a8130 100644 --- a/src/proc.c +++ b/src/proc.c @@ -30,7 +30,7 @@ mrb_closure_new(mrb_state *mrb, mrb_irep *irep) struct REnv *e; if (!mrb->ci->env) { - e = mrb_obj_alloc(mrb, MRB_TT_ENV, mrb->ci->proc->env); + e = mrb_obj_alloc(mrb, MRB_TT_ENV, (struct RClass *) mrb->ci->proc->env); e->flags= (unsigned int)irep->nlocals; e->mid = mrb->ci->mid; e->cioff = mrb->ci - mrb->cibase; |
