summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-11-28 20:35:06 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-11-28 20:35:06 +0900
commit09c6ca936c965d63752276aa3203b3e7534874ae (patch)
treeb799838a92dd473e9a9b86c98d109eccf9691c71
parentbcf8ad87e6c9a55ba852e483052ba579b5ecae37 (diff)
downloadmruby-09c6ca936c965d63752276aa3203b3e7534874ae.tar.gz
mruby-09c6ca936c965d63752276aa3203b3e7534874ae.zip
preserve ICLASS in ci->target_class; fix #2657; ensuring #1467 #1470 #1493 still works
-rw-r--r--src/vm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vm.c b/src/vm.c
index 88c0f2e49..4434f79b6 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1080,12 +1080,7 @@ RETRY_TRY_BLOCK:
ci->mid = mid;
ci->proc = m;
ci->stackent = mrb->c->stack;
- if (c->tt == MRB_TT_ICLASS) {
- ci->target_class = c->c;
- }
- else {
- ci->target_class = c;
- }
+ ci->target_class = c;
ci->pc = pc + 1;
ci->acc = a;