Fixing an invalid conversion

This commit is contained in:
Oupson 2020-11-02 11:44:22 +01:00
parent 4eee8dcc5e
commit 6ba16b51b1
1 changed files with 2 additions and 2 deletions

View File

@ -195,8 +195,8 @@ class Utils {
* [Short] The parsed short
*/
fun uShortFromBytesBigEndian(bytes: List<Int>): Short =
(((bytes[1] and 0xFF) shl 8) or
(bytes[0] and 0xFF)).toShort()
(((bytes[0] and 0xFF) shl 8) or
(bytes[1] and 0xFF)).toShort()
val fcTL: ByteArray by lazy { byteArrayOf(0x66, 0x63, 0x54, 0x4c) }
val IEND: ByteArray by lazy { byteArrayOf(0x49, 0x45, 0x4e, 0x44) }