Make the scope of `const struct RProc *dst` narrower.

parent c2444b84
...@@ -2008,7 +2008,6 @@ RETRY_TRY_BLOCK: ...@@ -2008,7 +2008,6 @@ RETRY_TRY_BLOCK:
else { else {
int acc; int acc;
mrb_value v; mrb_value v;
const struct RProc *dst;
ci = mrb->c->ci; ci = mrb->c->ci;
v = regs[a]; v = regs[a];
...@@ -2017,6 +2016,7 @@ RETRY_TRY_BLOCK: ...@@ -2017,6 +2016,7 @@ RETRY_TRY_BLOCK:
case OP_R_RETURN: case OP_R_RETURN:
/* Fall through to OP_R_NORMAL otherwise */ /* Fall through to OP_R_NORMAL otherwise */
if (ci->acc >=0 && MRB_PROC_ENV_P(proc) && !MRB_PROC_STRICT_P(proc)) { if (ci->acc >=0 && MRB_PROC_ENV_P(proc) && !MRB_PROC_STRICT_P(proc)) {
const struct RProc *dst;
mrb_callinfo *cibase; mrb_callinfo *cibase;
cibase = mrb->c->cibase; cibase = mrb->c->cibase;
dst = top_proc(mrb, proc); dst = top_proc(mrb, proc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment