News for hackers. Stuff that matters.
Re:C and C++ Prioritize Performance over Correctness by uecker on Friday August 18, 2023 @01:40PM (#37179299)
Two's complement does not mean signed overflow became defined. So the check is still wrong. And no, I do not think making it defined would lead to more correct programs. You then simply have really difficult wrap-around bugs instead of signed overflow which you can be found more easily with UB sanitizer or turn into traps at run-time.

There are no comments on this comment yet.