mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
11fbd724cc
commit
a0f487921e
2 changed files with 7 additions and 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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue