ff_derive: addchain 0.2
This commit is contained in:
parent
3cc7d2b89a
commit
7f9ee9db21
|
@ -16,8 +16,8 @@ edition = "2018"
|
|||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
addchain = "0.1"
|
||||
num-bigint = "0.2"
|
||||
addchain = "0.2"
|
||||
num-bigint = "0.3"
|
||||
num-traits = "0.2"
|
||||
num-integer = "0.1"
|
||||
proc-macro2 = "1"
|
||||
|
|
|
@ -419,7 +419,8 @@ fn biguint_to_real_u64_vec(mut v: BigUint, limbs: usize) -> Vec<u64> {
|
|||
let mut ret = vec![];
|
||||
|
||||
while v > BigUint::zero() {
|
||||
ret.push((&v % &m).to_u64().unwrap());
|
||||
let limb: BigUint = &v % &m;
|
||||
ret.push(limb.to_u64().unwrap());
|
||||
v >>= 64;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue