[rust-dev] Integer overflow, round -2147483648

Tony Arcieri bascule at gmail.com
Thu Jun 26 22:38:58 PDT 2014


On Thu, Jun 26, 2014 at 10:30 PM, Daniel Micay <danielmicay at gmail.com>
wrote:

> It's a perfect example of a case where this feature wouldn't have
> helped. Performance critical loops with years of micro-optimization are
> not going to use checked arithmetic types. Every branch that the
> programmer thinks can be avoided will be avoided.


I know you're not fans of a compiler flag, but a checked debug build with
traps you can optimize out in an optimized build could've caught it.

As it were, this is what Swift provides (in addition to explicit overflow
operators)

-- 
Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140626/05fc6834/attachment.html>


More information about the Rust-dev mailing list