[WASM] Fix invalid string literal encoding
This commit is contained in:
committed by
TeamCityServer
parent
34c6abe0bd
commit
2e78a1cd90
+1
-1
@@ -102,5 +102,5 @@ fun Int.toLittleEndianBytes(): ByteArray {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun Char.toLittleEndianBytes(): ByteArray {
|
fun Char.toLittleEndianBytes(): ByteArray {
|
||||||
return byteArrayOf((this.code and 0xFF).toByte(), (this.code and 0xFF00).toByte())
|
return byteArrayOf((this.code and 0xFF).toByte(), (this.code ushr Byte.SIZE_BITS).toByte())
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user