Commit ea9bb1e3 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

adjust stack position before exiting mrb_run(); close #193

parent d9227aa4
...@@ -980,7 +980,10 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) ...@@ -980,7 +980,10 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
cipop(mrb); cipop(mrb);
ci = mrb->ci; ci = mrb->ci;
if (ci == mrb->cibase) { if (ci == mrb->cibase) {
if (ci->ridx == 0) goto L_STOP; if (ci->ridx == 0) {
mrb->stack = mrb->stbase;
goto L_STOP;
}
break; break;
} }
} }
......
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