mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +00:00
Use overflow subtraction operator
This commit is contained in:
parent
a689463907
commit
9e8b91e23b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ private extension DeterministicHasher {
|
|||
case .djb2a:
|
||||
return ((result << 5) &+ result ^ next) % Self.u32mod
|
||||
case .sdbm:
|
||||
return next &+ (result << 6) &+ (result << 16) - result
|
||||
return next &+ (result << 6) &+ (result << 16) &- result
|
||||
case .fnv1:
|
||||
return (result * Self.fnvPrime % Self.u32mod) ^ next
|
||||
case .fnv1a:
|
||||
|
|
Loading…
Reference in a new issue