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.

^other^ ^rules^

founded 2 years ago
MODERATORS
242
I'm popular rule (lemmy.world)
submitted 9 months ago* (last edited 9 months ago) by InternetCitizen2 to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 30 points 9 months ago (2 children)

Integer overflow from 4 billion

[–] [email protected] 5 points 9 months ago

is this the math joke i was looking for

[–] idunnololz 1 points 9 months ago* (last edited 9 months ago)

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.