News for hackers. Stuff that matters.
Re:Using signed or unsigned int by default in C (2015) by xdavidliu on Tuesday August 23, 2022 @01:48PM (#32568484)
if we used i >= 0 and someone were to come in and change "int i" to "unsigned i" or "size_t i", the result would be catastrophic
Re:Using signed or unsigned int by default in C (2015) by Leherenn on Tuesday August 23, 2022 @03:07PM (#32569739)
The same argument can be applied to GP's code with the added bonus it will cause UB at some point.