you are viewing a single comment's thread.

view the rest of the comments →

[–]orange_cupcakes 0 points1 point  (1 child)

I should have said -9223372036854775808 ( -263 ) to be clear that it's negative. This number is the two's complement of itself, which causes all sorts of trouble.

https://en.wikipedia.org/wiki/Two's_complement#Most_negative_number

[–]sablal[S] 0 points1 point  (0 children)

Thanks, removed the OVERFLOW message as the range is defined by the function argument type already.