summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 18:25:01 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 18:25:01 +0000
commit5d4d154553d4c19e3ee9a526148eb615cb2c2d79 (patch)
tree5aeb3ccdac988886f0d3c270eb46721639734f34 /hash.c
parent9ec903b6c89ffe7bbb4ddf1c2b5d22965d6adf9c (diff)
* hash.c (hash_i): make Hash#hash order insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 55e2d0a819..3f269becb5 100644
--- a/hash.c
+++ b/hash.c
@@ -1602,7 +1602,6 @@ hash_i(key, val, hval)
{
if (key == Qundef) return ST_CONTINUE;
*hval ^= rb_hash(key);
- *hval *= 137;
*hval ^= rb_hash(val);
return ST_CONTINUE;
}