[WASM] Replace deprecated Char.toInt() with Char.code

This commit is contained in:
Ivan Kylchik
2023-07-24 11:33:05 +02:00
committed by Space Team
parent ee973c0ede
commit adce2c9a78
4 changed files with 24 additions and 24 deletions
@@ -126,7 +126,7 @@ public class String internal @WasmPrimitiveConstructor constructor(
val thisChars = chars
var hash = 0
repeat(thisLength) {
hash = (hash shl 5) - hash + thisChars.get(it).toInt()
hash = (hash shl 5) - hash + thisChars.get(it).code
}
_hashCode = hash
return _hashCode