Development quote of the week
Development quote of the week
Posted Dec 2, 2022 14:15 UTC (Fri) by renox (guest, #23785)In reply to: Development quote of the week by stevie-oh
Parent article: Development quote of the week
> For the case of signed integer overflow -- and, really, the biggest source of astonishment for people seems to be signed integer overflow -- you can use *unsigned* integers. Overflow those all you want; those are specified to wrap exactly the way most people expect.
In C yes, in Zig unsigned are exactly like signed integers: overflows are detected in debug mode but are undefined behaviors in release mode.