summaryrefslogtreecommitdiffhomepage
path: root/src/proc.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-01-10 10:36:03 +0900
committerdearblue <[email protected]>2021-01-10 13:23:35 +0900
commit16baea06771f38fea810ad1eaf3239086442c258 (patch)
treeb186bc1a7f3468edcf645dd36282434c8f171fd2 /src/proc.c
parent58e94427377952b0953bcdf2d544c62b0fefd4a6 (diff)
downloadmruby-16baea06771f38fea810ad1eaf3239086442c258.tar.gz
mruby-16baea06771f38fea810ad1eaf3239086442c258.zip
Changes `stackent` to `stack` of `mrb_callinfo`
This enhances self-containment. Previously `mrb_context::stack` had the current call level stack, but now it owns it. The `mrb_context::stack` field, which is no longer needed, will be removed.
Diffstat (limited to 'src/proc.c')
-rw-r--r--src/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c
index 66a8e5d64..2b07003be 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -89,7 +89,7 @@ closure_setup(mrb_state *mrb, struct RProc *p)
else if (up) {
struct RClass *tc = MRB_PROC_TARGET_CLASS(p);
- e = mrb_env_new(mrb, mrb->c, ci, up->body.irep->nlocals, mrb->c->stack, tc);
+ e = mrb_env_new(mrb, mrb->c, ci, up->body.irep->nlocals, ci->stack, tc);
ci->u.env = e;
if (MRB_PROC_ENV_P(up) && MRB_PROC_ENV(up)->cxt == NULL) {
e->mid = MRB_PROC_ENV(up)->mid;