summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 4a12a5b930..1d9ef3d6f2 100644
--- a/insns.def
+++ b/insns.def
@@ -1312,7 +1312,7 @@ opt_case_dispatch
}
else {
VALUE val;
- if (st_lookup(RHASH(hash)->tbl, key, &val)) {
+ if (st_lookup(RHASH_TBL(hash), key, &val)) {
JUMP(FIX2INT(val));
}
else {
@@ -1958,7 +1958,7 @@ opt_length
val = LONG2NUM(RARRAY_LEN(recv));
}
else if (HEAP_CLASS_OF(recv) == rb_cHash) {
- val = INT2FIX(RHASH(recv)->tbl->num_entries);
+ val = INT2FIX(RHASH_SIZE(recv));
}
else {
goto INSN_LABEL(normal_dispatch);