Fix more warnings everywhere.

This commit is contained in:
Simon Sapin 2015-03-18 22:11:20 +01:00
parent 5ffd71cd5e
commit 6a58cbd118
7 changed files with 5 additions and 7 deletions

View file

@ -126,7 +126,7 @@ macro_rules! int_range_index {
impl ::std::num::NumCast for $Self_ {
fn from<T: ToPrimitive>(n: T) -> Option<$Self_> {
n.to_int().map($Self_)
n.to_isize().map($Self_)
}
}