summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 03:03:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 03:03:51 +0000
commita0f487921e21dff86de25aa79cf1e102fc90ad3e (patch)
tree7852848e6b0f0c89d8fe9f8a267831b5636fdd8e /vm_insnhelper.c
parent11fbd724cc14895ad17e015ba5f0ab967ca3b35d (diff)
* vm_insnhelper.c (vm_get_ev_const): search from the base klass if it
is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index dd72601668..c411cf287a 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1045,10 +1045,10 @@ vm_get_ev_const(rb_thread_t *th, rb_iseq_t *iseq,
else {
vm_check_if_namespace(klass);
if (is_defined) {
- return rb_const_defined(klass, id);
+ return rb_const_defined_from(klass, id);
}
else {
- return rb_const_get(klass, id);
+ return rb_const_get_from(klass, id);
}
}
}