wrong stack position in rescue clause

This commit is contained in:
Yukihiro Matsumoto
2012-05-21 10:25:26 +09:00
parent ebfebfc365
commit 84a2fb102c
+1 -1
View File
@@ -992,7 +992,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
irep = ci->proc->body.irep;
pool = irep->pool;
syms = irep->syms;
regs = mrb->stack = mrb->stbase + ci->stackidx;
regs = mrb->stack = mrb->stbase + ci[1].stackidx;
pc = mrb->rescue[--ci->ridx];
}
else {