summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-13 17:44:22 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-13 17:44:22 -0700
commit8fa02a2cc7c4bcd3d86d6a61ffe97687100b2e52 (patch)
tree29fed30c37e42dce08568b51f2c7c0f565d3115b /src
parentb50d6468e0e2e244fe0e73a7ec757d4fbaf63963 (diff)
parent3385a33e9ecef22a2498248dfa1d3f77896d5faa (diff)
downloadmruby-8fa02a2cc7c4bcd3d86d6a61ffe97687100b2e52.tar.gz
mruby-8fa02a2cc7c4bcd3d86d6a61ffe97687100b2e52.zip
Merge pull request #1470 from carsonmcdonald/morefixfor1467
Tests and another fix for issue #1467
Diffstat (limited to 'src')
-rw-r--r--src/vm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vm.c b/src/vm.c
index 08c04e7b1..bd99e9013 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -897,12 +897,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
else {
ci->argc = n;
}
- 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;