Replace the use of a feature not yet implemented in rust 1.8
This commit is contained in:
parent
c9c40b9402
commit
b43c1ab258
|
@ -408,8 +408,8 @@ fn mac3(acc: &mut [BigDigit], b: &[BigDigit], c: &[BigDigit]) {
|
||||||
comp1 = comp1 - &comp3;
|
comp1 = comp1 - &comp3;
|
||||||
|
|
||||||
let result = r0 + (comp1 << 32*i) + (comp2 << 2*32*i) + (comp3 << 3*32*i) + (r4 << 4*32*i);
|
let result = r0 + (comp1 << 32*i) + (comp2 << 2*32*i) + (comp3 << 3*32*i) + (r4 << 4*32*i);
|
||||||
assert!(result.sign != Minus);
|
let result_pos = result.to_biguint().unwrap();
|
||||||
add2(&mut acc[..], &result.data.data);
|
add2(&mut acc[..], &result_pos.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,8 +105,8 @@ impl serde::Deserialize for Sign {
|
||||||
#[derive(Clone, Debug, Hash)]
|
#[derive(Clone, Debug, Hash)]
|
||||||
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
||||||
pub struct BigInt {
|
pub struct BigInt {
|
||||||
pub(super) sign: Sign,
|
sign: Sign,
|
||||||
pub(super) data: BigUint,
|
data: BigUint,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PartialEq for BigInt {
|
impl PartialEq for BigInt {
|
||||||
|
|
Loading…
Reference in New Issue