diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index e899c1b6b4..2c43e06f63 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -394,11 +394,10 @@ vm_get_ev_const(rb_thread_t *th, const rb_iseq_t *iseq, if (!NIL_P(klass)) { VALUE av, am = 0; - st_data_t data; + rb_const_entry_t *ce; search_continue: - if (RCLASS_CONST_TBL(klass) && - st_lookup(RCLASS_CONST_TBL(klass), id, &data)) { - val = ((rb_const_entry_t*)data)->value; + if ((ce = rb_const_lookup(klass, id))) { + val = ce->value; if (val == Qundef) { if (am == klass) break; am = klass; |