summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-07 18:36:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-07 18:36:53 +0900
commit23853acbb67ef09dfded6c4a31f16d03c5260554 (patch)
tree07b9e610a9b0665ee2e7fc6deae6ddbe2f5c2e75 /src/hash.c
parente40428af7b02870663a6c052496c176c22c5e875 (diff)
parentcab1f734ef9a9eb6b31d792bfc818e5cb4f3b300 (diff)
downloadmruby-23853acbb67ef09dfded6c4a31f16d03c5260554.tar.gz
mruby-23853acbb67ef09dfded6c4a31f16d03c5260554.zip
Merge pull request #1823 from ksss/hash-eql
Fix behavior Hash#eql?
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index 9d7927bb9..1091ca643 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -901,7 +901,7 @@ hash_equal(mrb_state *mrb, mrb_value hash1, mrb_value hash2, mrb_bool eql)
key = kh_key(h1,k1);
k2 = kh_get(ht, mrb, h2, key);
if (k2 != kh_end(h2)) {
- if (mrb_equal(mrb, kh_value(h1,k1), kh_value(h2,k2))) {
+ if (mrb_eql(mrb, kh_value(h1,k1), kh_value(h2,k2))) {
continue; /* next key */
}
}