num-traits/src
Dan Barella f99aa0e181 Check overflow when casting floats to integers.
This change adds some new macro rules used when converting from floats
to integers. There are two macro rule variants, one for signed ints, one
for unsigned ints.

Among other things, this change specifically addresses the overflow case
documented in https://github.com/rust-num/num-traits/issues/12
2018-03-10 15:14:23 -08:00
..
ops Fix doc tests. 2018-02-27 13:25:53 -05:00
bounds.rs Re-introduce the std feature 2018-01-31 15:42:55 -08:00
cast.rs Check overflow when casting floats to integers. 2018-03-10 15:14:23 -08:00
float.rs Comment the Rust version for NAN.is_sign_* behavior 2018-02-28 11:43:55 -08:00
identities.rs Add #[inline] to is_one. 2018-02-23 17:44:07 -05:00
int.rs Re-introduce the std feature 2018-01-31 15:42:55 -08:00
lib.rs Use forwarding macros to implement Float and Real 2018-02-27 16:33:04 -08:00
macros.rs allow unused macros 2018-02-27 17:09:43 -08:00
pow.rs Ensure infalliability of conversions, avoid closures. 2018-02-27 14:06:46 -05:00
real.rs Use forwarding macros to implement Float and Real 2018-02-27 16:33:04 -08:00
sign.rs Use more FloatCore in src/sign.rs 2018-02-27 21:50:44 -08:00