Fix Murmur2 hash implementation

This commit is contained in:
comp500
2019-12-23 16:20:38 +00:00
parent c89d3b1e47
commit 432bb4e25f
2 changed files with 6 additions and 6 deletions

View File

@@ -29,8 +29,8 @@ class Murmur2Hasher : IHasher {
val output = ByteArray(input.size)
var index = 0
for (b in input) {
when (b.toInt()) {
9, 10, 13, 32 -> {}
when (b) {
9.toByte(), 10.toByte(), 13.toByte(), 32.toByte() -> {}
else -> {
output[index] = b
index++