diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm_insnhelper.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Apr 22 12:03:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * vm_insnhelper.c (vm_get_ev_const): search from the base klass if it + is given. + Tue Apr 22 09:58:13 2008 NAKAMURA Usaku <usa@ruby-lang.org> * ext/win32ole/win32ole.c: avoid warnings. 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); } } } |