summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-28 11:53:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-29 01:06:22 +0900
commit7477d0c18cf56a29f369cd2a0dcf4e429a41fed1 (patch)
treeef67da38bf2a518e6d09da357f4e0e2d27140f9a
parent77b2ec30ff7f0ca70e63e20bb7294bccb03f6ec5 (diff)
downloadmruby-7477d0c18cf56a29f369cd2a0dcf4e429a41fed1.tar.gz
mruby-7477d0c18cf56a29f369cd2a0dcf4e429a41fed1.zip
revert 6c1dfc9; ref #2525 #2565
-rw-r--r--src/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c
index 0b776ea80..7ea6fe711 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -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;