Y
Hacker News
new
|
ask
|
show
|
jobs
by
LoganDark
1326 days ago
Java lacks a distinct uint type, but (since Java 8) allows you to perform unsigned operations on a regular int, effectively treating it as a uint.
It doesn't help that almost nobody knows this, though.
1 comments
morelisp
1326 days ago
At the point where you're writing `>>>` to, ironically, do proper arithmetic - you should probably write a correct version without a shift instead.
link