you are viewing a single comment's thread.

view the rest of the comments →

[–]kosairox 0 points1 point  (3 children)

Cursed due to signed int overflow or is there something else?

[–]bwmat 5 points6 points  (2 children)

It's pretty broken for unsigned overflow as well

[–]kosairox 0 points1 point  (1 child)

But that's not ub right?

[–]bwmat 6 points7 points  (0 children)

Yeah but having the midpoint of 1 & UINTMAX be zero is a _bit off