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 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; |