This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-08-31 14:19:15 +09:00
parent fee7a55381
commit ad5c408c7b
+6 -1
View File
@@ -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;