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:
Torsten Ruger 2016-12-28 14:35:07 +02:00
parent 9226de4502
commit 8867b13240

View File

@ -61,7 +61,7 @@ module Parfait
end
def self.str_hash(str)
if RUBY_ENGINE == "OPAL"
if RUBY_ENGINE == 'opal'
hash = 5381
str.to_s.each_char do |c|
hash = ((hash << 5) + hash) + c.to_i; # hash * 33 + c without getting bignums