Permalink
Browse files

Update callinfo->target_class in mrb_exec_irep(); fix #3543

  • Loading branch information...
matz committed Apr 2, 2017
1 parent 081535b commit a49c9f86e73d76cbeba30e1affda874fcab0a504
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -467,6 +467,7 @@ mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p)
mrb_callinfo *ci = mrb->c->ci;
ci->proc = p;
ci->target_class = p->target_class;
if (MRB_PROC_CFUNC_P(p)) {
return p->body.func(mrb, self);
}

0 comments on commit a49c9f8

Please sign in to comment.