Comment on [deleted]
neukenindekeuken@sh.itjust.works 5 weeks ago
Int overflow, but with a signed int32
So achtually -1 "
-2,147,483,649, actually. A signed int32 can represent -1 just fine.
Yeah, unsigned ofc.
Unsigned jumps from 0 to 4,294,967,295. An overflow won’t get you to 2,147,483,647 unless you have a 31-bit uint for some reason.
Valmond@lemmy.dbzer0.com 5 weeks ago
So achtually -1 "
kkj@lemmy.dbzer0.com 5 weeks ago
-2,147,483,649, actually. A signed int32 can represent -1 just fine.
Valmond@lemmy.dbzer0.com 5 weeks ago
Yeah, unsigned ofc.
kkj@lemmy.dbzer0.com 5 weeks ago
Unsigned jumps from 0 to 4,294,967,295. An overflow won’t get you to 2,147,483,647 unless you have a 31-bit uint for some reason.