From 7f3b12f05b95745ae4766e085bf2d21298e4fa1b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 May 2014 08:28:31 +0000 Subject: use predefined IDs * array.c (rb_ary_equal), hash.c (hash_equal): use predefined IDs, `to_ary` and `to_hash` respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 61f64101d3..93efde762a 100644 --- a/hash.c +++ b/hash.c @@ -1930,7 +1930,7 @@ hash_equal(VALUE hash1, VALUE hash2, int eql) if (hash1 == hash2) return Qtrue; if (!RB_TYPE_P(hash2, T_HASH)) { - if (!rb_respond_to(hash2, rb_intern("to_hash"))) { + if (!rb_respond_to(hash2, idTo_hash)) { return Qfalse; } if (eql) -- cgit v1.2.3