mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
suppress "can't convert Float into Integer" in Enumerable#hash
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user