diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-28 11:53:03 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-28 11:53:03 +0900 |
| commit | c457aa2193fb8b9a7cb8ba4e47203544964b7560 (patch) | |
| tree | ef67da38bf2a518e6d09da357f4e0e2d27140f9a /src | |
| parent | 1abbfecd9f852232027592682d00a82b220eea31 (diff) | |
| download | mruby-c457aa2193fb8b9a7cb8ba4e47203544964b7560.tar.gz mruby-c457aa2193fb8b9a7cb8ba4e47203544964b7560.zip | |
revert 6c1dfc9; ref #2525 #2565
Diffstat (limited to 'src')
| -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 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; |
