diff options
| author | dearblue <[email protected]> | 2021-01-10 10:36:03 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-01-10 13:23:35 +0900 |
| commit | 16baea06771f38fea810ad1eaf3239086442c258 (patch) | |
| tree | b186bc1a7f3468edcf645dd36282434c8f171fd2 /src/kernel.c | |
| parent | 58e94427377952b0953bcdf2d544c62b0fefd4a6 (diff) | |
| download | mruby-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/kernel.c')
| -rw-r--r-- | src/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
