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

This commit is contained in:
Yukihiro Matsumoto
2012-05-25 13:48:54 +09:00
parent d9227aa41d
commit ea9bb1e38f
+4 -1
View File
@@ -980,7 +980,10 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
cipop(mrb);
ci = mrb->ci;
if (ci == mrb->cibase) {
if (ci->ridx == 0) goto L_STOP;
if (ci->ridx == 0) {
mrb->stack = mrb->stbase;
goto L_STOP;
}
break;
}
}