Skip to content

Commit

Permalink
revert #1470; fix #1493
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Aug 31, 2013
1 parent fee7a55 commit ad5c408
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,12 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
else {
ci->argc = n;
}
ci->target_class = c;
if (c->tt == MRB_TT_ICLASS) {
ci->target_class = c->c;
}
else {
ci->target_class = c;
}

ci->pc = pc + 1;
ci->acc = a;
Expand Down

0 comments on commit ad5c408

Please sign in to comment.