]> git.lizzy.rs Git - rust.git/commit
Convert between BigInts, BigUints, ints, and uints
authorDavid Creswick <dcrewi@gyrae.net>
Mon, 9 Sep 2013 16:15:03 +0000 (11:15 -0500)
committerDavid Creswick <dcrewi@gyrae.net>
Mon, 9 Sep 2013 16:15:03 +0000 (11:15 -0500)
commit9bee3d7e5b1ca7269d008c8df39c3683345bdb3d
tree31a1a1f3d649c7229424da29945512713637189e
parentdfb04d9953f640301c80cbe910b91ca9c92af55a
Convert between BigInts, BigUints, ints, and uints

Previously, conversion to ints, uints, and BigUints clamped the value
within the range of that datatype. With this commit, conversion
overflows fail the task. To handle overflows gracefully, use the new
to_*_opt() methods.
src/libextra/num/bigint.rs