Commit a1a157b2 authored by Yusuke Endoh's avatar Yusuke Endoh

suppress "can't convert Float into Integer" in Enumerable#hash

parent 74d52a11
......@@ -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