diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-23 01:36:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-02 11:43:35 +0900 |
commit | d08721465850a6e6954b43bbfebe2ed5a7256dec (patch) | |
tree | 4d7b76889e7e9f06f886ffb66ed614cfa6088332 /hash.c | |
parent | 806e7947fec775ce27aa783ee00dbd8f52685db8 (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |