Re:Solutions to Integer Overflow
by mzs on Monday September 05, 2016 @02:03PM
(#12431487)
It's worse than you might expect, try it with unsigned int ;)
Yes overflow wraps on unsigned as defined, but that example is divide-by-zero which is UB for unsigned too and the compiler is free to optimize there, which LLVM does.
[ Parent
| on HN ]
There are no comments on this comment yet.