Rust nightly needs explicit cast from u32 to usize

This commit is contained in:
Steve Jahns 2015-03-04 09:43:44 -07:00
parent 7c203e27d3
commit fb6b4ae9df
1 changed files with 1 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ impl BigUint {
pub fn bits(&self) -> usize {
if self.is_zero() { return 0; }
let zeros = self.data.last().unwrap().leading_zeros();
return self.data.len()*big_digit::BITS - zeros;
return self.data.len()*big_digit::BITS - zeros as usize;
}
}