check upper callinfo to call ensure block; close #1579

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-11-18 07:07:33 +09:00
parent 71011cdc9e
commit 52070a9898
+1 -1
View File
@@ -1284,7 +1284,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
mrb->jmp = prev_jmp;
mrb_longjmp(mrb);
}
while (eidx > ci->eidx) {
while (eidx > ci[-1].eidx) {
ecall(mrb, --eidx);
}
if (ci == mrb->c->cibase) {