]> git.lizzy.rs Git - rust.git/commitdiff
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)
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
```


Trivial merge