From 16baea06771f38fea810ad1eaf3239086442c258 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sun, 10 Jan 2021 10:36:03 +0900 Subject: 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. --- src/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proc.c') 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; -- cgit v1.2.3