Commit 5596d14c authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #3107 from mame/fix-enum-hash

[255, 255, 255, 255, 255].hash raises "can't convert Float into Integer"
parents 683ff0cb a1a157b2
......@@ -383,7 +383,7 @@ module Enumerable
h = 12347
i = 0
self.each do |e|
n = e.hash << (i % 16)
n = (e.hash & (0x7fffffff >> (i % 16))) << (i % 16)
h ^= n
i += 1
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment