]> git.lizzy.rs Git - rust.git/commit
auto merge of #9774 : sebcrozet/rust/master, r=huonw
authorbors <bors@rust-lang.org>
Thu, 10 Oct 2013 00:41:23 +0000 (17:41 -0700)
committerbors <bors@rust-lang.org>
Thu, 10 Oct 2013 00:41:23 +0000 (17:41 -0700)
commit8f4b87290bfdaf9f13663539f2969a0567e5b154
tree14e3345c8abfdbc5c9835ab0b1afc61ea9498b29
parent2076959336a1751bccfb24e1b8e0107341bec58a
parent8ac0d0a59ee47d9f8027955ca13f545f89bcc687
auto merge of #9774 : sebcrozet/rust/master, r=huonw

The minimum (negative) value of a float is `-Bounded::max_value()`, not `Bounded::min_value()`.
Otherwise the following has an incorrect behavior:

```rust
let a = -1.0f64;
let b: f32 = NumCast::from(a); // incorrectly returns None
```