repo.or.cz
/
mruby.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
cdf173d
)
Cancel df3507660 that does not do any good.
author
Yukihiro "Matz" Matsumoto
<
[email protected]
>
Thu, 7 Dec 2017 06:18:41 +0000
(7 15:18 +0900)
committer
Yukihiro "Matz" Matsumoto
<
[email protected]
>
Thu, 7 Dec 2017 06:18:41 +0000
(7 15:18 +0900)
src/vm.c
patch
|
blob
|
blame
|
history
diff --git
a/src/vm.c
b/src/vm.c
index
c65d86d
..
45e0526
100644
(file)
--- 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;
}