Hi. `shr` is not resolved in the above function
# getting-started
t
Hi.
shr
is not resolved in the above function
c
Maybe
Copy code
fun shift(bytes: ByteArray): Double = (bytes[0] + (bytes[1].toInt() shr 0 and 1) * 256).toDouble()
t
shr is supposed to work on byte right?
c
From the definition for
shr
, I don't think so.
a
@tekjar there is only an Int-Version of
shr
available. you could define yourself a Byte-Version
t
@Andreas Sinz Can you please help me with that. Or point to Int shr definition?
a