News for hackers. Stuff that matters.
Re:Almost Always Unsigned by kazinator on Sunday January 02, 2022 @11:07AM (#29769867)
In C or C++, if you write a function void api(unsigned), you can cheerfully call it as api(-42) or api(b - c) where b - c are int.

This is a poor, poor substitute for contract checking.

There are no comments on this comment yet.