Re:My personal C coding style as of late 2023
by uecker on Monday October 09, 2023 @02:32PM
(#37823588)
You can write correct programs with both. The reality is that people often fail to do this. But you can automatically detect signed overflow and protect against it, while unsigned wrap detected at run-time could be a bug or could be just fine (e.g. because you did your own "overflow" check and handle it correctly). This makes it extremely hard to find unsigned wraparound bugs and impossible to trap at run-time.
[ Parent
| on HN ]
There are no comments on this comment yet.