
I was increasingly confused as to why so many people consider signed integer overflow undefined behaviour in C++
To me, it's a perfectly defined operation that wraps by modulo.
Well, I did some reading, and oh my
Dmitrii Kovanikov@ChShersh
Here's a fixed version of 'abs' without surprises. This is everything you need to know about the challenges of writing correct software.
English


