summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-26 17:27:21 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-26 17:27:21 +0000
commit2285a8d813814e936484d302dacf1ff39e40e33c (patch)
tree903b908f019dce423c6d691003f200176046895a /vm_insnhelper.c
parent6ca3ad34a044f48fa25d250076f5e8c9c8810b38 (diff)
downloadruby-2285a8d813814e936484d302dacf1ff39e40e33c.tar.gz
* class.c, gc.c, object.c, variable.c, vm_insnhelper.c,
include/ruby/ruby.h: separate RCLASS_CONST_TBL from RCLASS_IV_TBL. RCLASS_IV_TBL has contained not only instance variable table but also constant table. Now the two table are separated to RCLASS_CONST_TBL and RCLASS_IV_TBL. This is a preparation for private constant (see [ruby-dev:39685][ruby-core:32698]). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29600 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 e760fdd61d..5e0a00ee92 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1169,8 +1169,8 @@ vm_get_ev_const(rb_thread_t *th, const rb_iseq_t *iseq,
VALUE am = 0;
st_data_t data;
search_continue:
- if (RCLASS_IV_TBL(klass) &&
- st_lookup(RCLASS_IV_TBL(klass), id, &data)) {
+ if (RCLASS_CONST_TBL(klass) &&
+ st_lookup(RCLASS_CONST_TBL(klass), id, &data)) {
val = (st_data_t)data;
if (val == Qundef) {
if (am == klass) break;