summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-07 15:18:41 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-07 15:18:41 +0900
commit10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7 (patch)
tree5336762acee2ce2d1dcec274eb778ed249533726 /src
parentcdf173d32c41ee24059d63dd8b020acaa2a40c5e (diff)
downloadmruby-10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7.tar.gz
mruby-10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7.zip
Cancel df3507660 that does not do any good.
Diffstat (limited to 'src')
-rw-r--r--src/vm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vm.c b/src/vm.c
index c65d86d8b..45e05268c 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -743,13 +743,11 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value
if (MRB_PROC_CFUNC_P(p)) {
val = MRB_PROC_CFUNC(p)(mrb, self);
mrb->c->stack = mrb->c->ci->stackent;
+ cipop(mrb);
}
else {
- ptrdiff_t cioff = mrb->c->ci - mrb->c->cibase;
val = mrb_run(mrb, p, self);
- mrb->c->ci = mrb->c->cibase + cioff;
}
- cipop(mrb);
return val;
}