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/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel.c') diff --git a/src/kernel.c b/src/kernel.c index f14f6af7c..36ed0c121 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -185,7 +185,7 @@ mrb_f_block_given_p_m(mrb_state *mrb, mrb_value self) bp = &e->stack[bidx]; } else { - bp = ci[1].stackent+1; + bp = ci->stack+1; if (ci->argc >= 0) { bp += ci->argc; } -- cgit v1.2.3