Hacker News new | ask | show | jobs
by vlovich123 739 days ago
Sorry, was thinking of signed integer overflow which while considered sound is simultaneously considered to be a a bug in your code (hence the panic in debug mode and requires the use of wrapping_add if you intend the wrapping).
1 comments

Rust behaves as you describe for both signed and unsigned.