2 ms·
Signed overflow is undefined behavior.
by saagarjha 6y ago
Signed overflow is undefined behavior.
- quietbritishjim 6y agoThat seems to be exactly what the parent comment said.
- MaxBarraclough 6y agoI think saagarjha's point was that the article already points out that signed overflow causes undefined behaviour. That's true, but I think it still bears emphasising that (INT_MIN / -1) causes undefined behaviour.