summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/hash.c b/hash.c
index a3853e8ef3..2d22f8ab2b 100644
--- a/hash.c
+++ b/hash.c
@@ -1620,23 +1620,16 @@ rb_hash_modify_check(VALUE hash)
}
MJIT_FUNC_EXPORTED struct st_table *
-#if RHASH_CONVERT_TABLE_DEBUG
rb_hash_tbl_raw(VALUE hash, const char *file, int line)
{
return ar_force_convert_table(hash, file, line);
}
-#else
-rb_hash_tbl_raw(VALUE hash)
-{
- return ar_force_convert_table(hash, NULL, 0);
-}
-#endif
struct st_table *
rb_hash_tbl(VALUE hash, const char *file, int line)
{
OBJ_WB_UNPROTECT(hash);
- return RHASH_TBL_RAW(hash);
+ return rb_hash_tbl_raw(hash, file, line);
}
static void