summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-23 01:36:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-02 11:43:35 +0900
commitd08721465850a6e6954b43bbfebe2ed5a7256dec (patch)
tree4d7b76889e7e9f06f886ffb66ed614cfa6088332 /hash.c
parent806e7947fec775ce27aa783ee00dbd8f52685db8 (diff)
Restore Hash#compare_by_identity mode [Bug #18171]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4893
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 1 insertions, 3 deletions
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;