I want the wrap to behave correctly.
# announcements
j
I want the wrap to behave correctly.
d
Use
.toUInt()
then use your bitwise operators
j
That feels somewhat dumb
d
I agree, but it doesn't affect performance.
This is why I use
Int
everywhere in said project, it saves a lot of conversions
For example, take a look at java
OutputStream
, where there's
void write(int i)
but the 24 msb are dropped. Because it doesn't matter for performance, I'm guessing.