Skip to content

Commit

Permalink
revert 6c1dfc9; ref #2525 #2565
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Aug 28, 2014
1 parent 77b2ec3 commit 7477d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc.c
Expand Up @@ -41,7 +41,7 @@ closure_setup(mrb_state *mrb, struct RProc *p, int nlocals)

if (!mrb->c->ci->env) {
e = (struct REnv*)mrb_obj_alloc(mrb, MRB_TT_ENV, (struct RClass*)mrb->c->ci->proc->env);
MRB_ENV_STACK_LEN(e) = (unsigned int)nlocals+1; /* add space for receiver */
MRB_ENV_STACK_LEN(e) = (unsigned int)nlocals;
e->mid = mrb->c->ci->mid;
e->cioff = mrb->c->ci - mrb->c->cibase;
e->stack = mrb->c->stack;
Expand Down

0 comments on commit 7477d0c

Please sign in to comment.