mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-26 17:44:31 +01:00
Fix Murmur2 hash implementation
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user