mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Cancel df3507660 that does not do any good.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user