Skip to content

Commit

Permalink
Update callinfo->target_class in mrb_exec_irep(); fix #3543
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 2, 2017
1 parent 081535b commit a49c9f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a49c9f8

Please sign in to comment.