summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 9ab67202db..990bc076b1 100644
--- a/array.c
+++ b/array.c
@@ -4431,10 +4431,10 @@ static inline void
ary_recycle_hash(VALUE hash)
{
assert(RBASIC_CLASS(hash) == 0);
- if (RHASH_TABLE_P(hash)) {
+ if (RHASH_ST_TABLE_P(hash)) {
st_table *tbl = RHASH_ST_TABLE(hash);
st_free_table(tbl);
- RHASH_CLEAR(hash);
+ RHASH_ST_CLEAR(hash);
}
}