HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by poincaredisk | Hacker News Reader
Parent
Full thread
poincaredisk
·
It can't overflow - max_int+max_int < max_uint
View on HN
beyondCritics
·
This reasoning is correct but still has to assume that both indices are non negative, which is reasonable.
tda
·
So does the bitshift cast the result of the addition to an unsigned int? I am not so familiar with Java.
Reply on news.ycombinator.com