diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
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); } } } |