From d08721465850a6e6954b43bbfebe2ed5a7256dec Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 Sep 2021 01:36:27 +0900 Subject: Restore Hash#compare_by_identity mode [Bug #18171] --- hash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 9c3164c96a..d546a2c73a 100644 --- a/hash.c +++ b/hash.c @@ -1548,8 +1548,6 @@ rb_hash_new(void) return hash_alloc(rb_cHash); } -static VALUE rb_hash_compare_by_id(VALUE hash); - static VALUE copy_compare_by_id(VALUE hash, VALUE basis) { @@ -4380,7 +4378,7 @@ static st_table *rb_init_identtable_with_size(st_index_t size); * h # => {"x"=>0, "x"=>1} */ -static VALUE +VALUE rb_hash_compare_by_id(VALUE hash) { VALUE tmp; -- cgit v1.2.1