Re:Night of a cascading failure
by bsder on Monday January 21, 2019 @08:30PM
(#18965237)
Overflow and underflow on signed types is undefined behavior in C.
You should almost always use unsigned types unless you must use a signed type. And you need to think about these kinds of overflow and underflow cases.
You should almost always use unsigned types unless you must use a signed type. And you need to think about these kinds of overflow and underflow cases.