3 ms·
Rust will actually now panic when not in release mode when an integer overflow happens, as opposed to how things used to be before, where it would just accept t
by FreeFull 12y ago
Rust will actually now panic when not in release mode when an integer overflow happens, as opposed to how things used to be before, where it would just accept the overflow silently with wrapping semantics. Here is the discussion from when this change was announced:
http://internals.rust-lang.org/t/a-tale-of-twos-complement/1062 http://internals.rust-lang.org/t/a-tale-of-twos-complement/1...
- lomnakkus 12y agoOh, that's good news!