summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-29 00:39:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-29 00:39:16 +0000
commit693eabb2be4a57f1300e6b73d6d8069b355782c6 (patch)
treedc33ae83b72e6b928ae49807636dc45418d5bbb3 /vm_eval.c
parent420b4ae26d69fff5d7e1ebef122b69502519dec9 (diff)
vm_eval.c: follow the original class
* vm_eval.c (vm_call0_body): follow the original class, not to loop the prepended module. [ruby-core:77784] [Bug #12876] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 18cd9dd436..672d5aef1f 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -201,7 +201,7 @@ vm_call0_body(rb_thread_t* th, struct rb_calling_info *calling, const struct rb_
goto again;
}
- super_class = RCLASS_SUPER(cc->me->defined_class);
+ super_class = RCLASS_SUPER(RCLASS_ORIGIN(cc->me->defined_class));
if (!super_class || !(cc->me = rb_callable_method_entry(super_class, ci->mid))) {
enum method_missing_reason ex = (type == VM_METHOD_TYPE_ZSUPER) ? MISSING_SUPER : 0;