diff --git a/ktor-io/common/src/io/ktor/utils/io/bits/ByteOrder.kt b/ktor-io/common/src/io/ktor/utils/io/bits/ByteOrder.kt index 82247f05a..c7f7e3043 100644 --- a/ktor-io/common/src/io/ktor/utils/io/bits/ByteOrder.kt +++ b/ktor-io/common/src/io/ktor/utils/io/bits/ByteOrder.kt @@ -46,7 +46,7 @@ fun UInt.reverseByteOrder(): UInt = toInt().reverseByteOrder().toUInt() fun ULong.reverseByteOrder(): ULong = toLong().reverseByteOrder().toULong() @ExperimentalIoApi -inline val Short.highByte: Byte get() = ((toInt() and 0xff) shr 8).toByte() +inline val Short.highByte: Byte get() = (toInt() ushr 8).toByte() @ExperimentalIoApi inline val Short.lowByte: Byte get() = (toInt() and 0xff).toByte()