Ruckus
08/08/2020, 8:50 PM0xA3u + 0x91u
becomes 0xFFu
)? And the same for subtraction (e.g. 0x34u - 0x51u
becomes 0x00u
).diesieben07
08/08/2020, 8:52 PM(a.toUInt() + b.toUInt()).coerceIn(0x00u, 0xFFu).toUByte()
Ruckus
08/08/2020, 8:54 PMInt
to handle negatives?diesieben07
08/08/2020, 8:54 PMInt
then, yeahRuckus
08/08/2020, 8:58 PMdiesieben07
08/08/2020, 8:59 PM