ff_derive: addchain 0.2

This commit is contained in:
Jack Grigg 2020-08-15 00:40:08 +01:00
parent 3cc7d2b89a
commit 7f9ee9db21
2 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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;
}