From a65950ef261ca51ad67532cf9f96c277d0d7b1e3 Mon Sep 17 00:00:00 2001 From: goldenMetteyya Date: Tue, 9 Apr 2019 23:57:43 +0300 Subject: [PATCH] Update partial.rs --- src/algorithms/partial.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/algorithms/partial.rs b/src/algorithms/partial.rs index dde4ef1..20f7854 100644 --- a/src/algorithms/partial.rs +++ b/src/algorithms/partial.rs @@ -72,7 +72,8 @@ fn u64_log2(n: u64) -> u64 { pub fn partial_bigint(op: &BigInt) -> (i64, i32) { //uint64_t size = mpz_size(op); //number if limbs used to represent this number - let size = op.len(); + //let size = op.len(); + let size = op.digits().len(); // let last: u64 = op.digits()[size-1];