summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-01 18:05:47 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:09 +0900
commitb01207ea94095bc855b8e6fef0dc65d7eae0d8ad (patch)
treec9deb041672115a2799725ec07d61e78956cf458 /src/vm.c
parentc2444b84249a53175c5b720099f64ea580daf315 (diff)
downloadmruby-b01207ea94095bc855b8e6fef0dc65d7eae0d8ad.tar.gz
mruby-b01207ea94095bc855b8e6fef0dc65d7eae0d8ad.zip
Make the scope of `const struct RProc *dst` narrower.
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index 68725798b..bff13af10 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -2008,7 +2008,6 @@ RETRY_TRY_BLOCK:
else {
int acc;
mrb_value v;
- const struct RProc *dst;
ci = mrb->c->ci;
v = regs[a];
@@ -2017,6 +2016,7 @@ RETRY_TRY_BLOCK:
case OP_R_RETURN:
/* Fall through to OP_R_NORMAL otherwise */
if (ci->acc >=0 && MRB_PROC_ENV_P(proc) && !MRB_PROC_STRICT_P(proc)) {
+ const struct RProc *dst;
mrb_callinfo *cibase;
cibase = mrb->c->cibase;
dst = top_proc(mrb, proc);