2 ms·
And get undefined behavior where the compiler can do anything it wants...
by marcosdumay 5y ago
And get undefined behavior where the compiler can do anything it wants...
- cwzwarich 5y agoUnlike other cases of signed overflow, you actually don’t get UB on integer-to-integer conversions. You still have a bug in your code, though.