yep, opal != OPAL
engine has to be in small letters it seems OPAL came from the original commit in 2013, but alas
This commit is contained in:
parent
9226de4502
commit
8867b13240
@ -61,7 +61,7 @@ module Parfait
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.str_hash(str)
|
def self.str_hash(str)
|
||||||
if RUBY_ENGINE == "OPAL"
|
if RUBY_ENGINE == 'opal'
|
||||||
hash = 5381
|
hash = 5381
|
||||||
str.to_s.each_char do |c|
|
str.to_s.each_char do |c|
|
||||||
hash = ((hash << 5) + hash) + c.to_i; # hash * 33 + c without getting bignums
|
hash = ((hash << 5) + hash) + c.to_i; # hash * 33 + c without getting bignums
|
||||||
|
Loading…
Reference in New Issue
Block a user