[rust-dev] Integer overflow, round -2147483648

Daniel Micay danielmicay at gmail.com
Thu Jun 19 12:03:49 PDT 2014


On 19/06/14 03:05 AM, Jerry Morrison wrote:
>
> BigUint is weird: It can underflow but not overflow. When you use its
> value in a more bounded way you'll need to bounds-check it then, whether
> it can go negative or not. Wouldn't it be easier to discard it than
> squeeze it into the wraparound or checked models?

I don't think we should have a big unsigned integer. It's not something
I've seen other big integer libraries do.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140619/9c87977b/attachment.sig>


More information about the Rust-dev mailing list