News for hackers. Stuff that matters.
Re:C++ still isn't cutting it by Ut_Pwnsim on Monday October 19, 2020 @01:05PM (#24828365)
>although we've collectively decided that we prefer to have 2,147,483,647 + 1 = -2,147,483,648. (in both C++ or rust in release mode)

Signed integer overflow is undefined behavior in C++. Only unsigned integers are defined to wrap like that.

https://stackoverflow.com/a/16188846

There are no comments on this comment yet.