From 9f1e18a138e5196c04c5231c6a799dc637f2e9af Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 13 Jul 2024 18:48:18 +0900 Subject: [PATCH] follow-up for 3faef1d40dc1d6eea8ffcd624528f431ccaf0a5b. --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.c b/hash.c index a1fedb84a3..8667dd6278 100644 --- a/hash.c +++ b/hash.c @@ -4238,7 +4238,7 @@ rb_hash_assoc(VALUE hash, VALUE key) table = RHASH_ST_TABLE(hash); orighash = table->type; - if (!RHASH_IDENTHASH_P(orighash)) { + if (!RHASH_IDENTHASH_P(hash)) { VALUE value; struct reset_hash_type_arg ensure_arg; struct st_hash_type assochash;