From ac9f8145f1e4fe739128db39be0abe401c6096ea Mon Sep 17 00:00:00 2001 From: eregon Date: Sat, 7 Jan 2017 11:31:53 +0000 Subject: fix optimization for hash aset/aref with fstring Patch by Eric Wong [ruby-core:78797]. I don't like the idea of making insns.def any bigger to support a corner case, and "test_hash_aref_fstring_identity" shows how contrived this is. [ruby-core:78783] [Bug #12855] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 9cb4dcfa2e..4672934566 100644 --- a/hash.c +++ b/hash.c @@ -2758,8 +2758,6 @@ rb_hash_compact_bang(VALUE hash) return Qnil; } -static VALUE rb_hash_compare_by_id_p(VALUE hash); - /* * call-seq: * hsh.compare_by_identity -> hsh @@ -2795,7 +2793,7 @@ rb_hash_compare_by_id(VALUE hash) * */ -static VALUE +VALUE rb_hash_compare_by_id_p(VALUE hash) { if (!RHASH(hash)->ntbl) -- cgit v1.2.3