this post was submitted on 10 Mar 2024
242 points (99.6% liked)
196
16714 readers
3270 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Integer overflow from 4 billion
is this the math joke i was looking for
Uhm akshually, the max value of an int is about 2.1 billion. It would be 4 billion if it was unsigned but it's clearly signed here otherwise it wouldn't be -1.