target_class should not be TT_ICLASS; close #1152

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-09 10:52:15 +09:00
parent 9fbd66cb9a
commit 03367c19ed
+7 -1
View File
@@ -873,7 +873,13 @@ 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;