diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-20 17:26:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-20 19:37:26 +0900 |
| commit | 100f0e6759be8e439e586acf01032d2b8b96c6bd (patch) | |
| tree | 49b0d4f8653c545823e4800691c0586f80891a5b /src/proc.c | |
| parent | 73b05f0130b447315a411e7c7252859dad8e7b4d (diff) | |
| download | mruby-100f0e6759be8e439e586acf01032d2b8b96c6bd.tar.gz mruby-100f0e6759be8e439e586acf01032d2b8b96c6bd.zip | |
Do not need to take `target_class` from the upper proc.
Since it is already set in `mrb_proc_new()`.
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 bd93de618..c6e9be433 100644 --- a/src/proc.c +++ b/src/proc.c @@ -69,7 +69,7 @@ closure_setup(mrb_state *mrb, struct RProc *p) e = ci->env; } else { - struct RClass *tc = MRB_PROC_TARGET_CLASS(up); + struct RClass *tc = MRB_PROC_TARGET_CLASS(p); e = env_new(mrb, up->body.irep->nlocals); ci->env = e; |
