Commit c31102bc0eb70a166f050efe876d17dce809a9a6

Karel Miko 2015-04-18T19:32:09

fix warning: expected "mp_digit *" but argument is of type "long unsigned int *"

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_sqrtmod_prime.c b/bn_mp_sqrtmod_prime.c
index 1399fe0..b1a0441 100644
--- a/bn_mp_sqrtmod_prime.c
+++ b/bn_mp_sqrtmod_prime.c
@@ -19,7 +19,7 @@ int mp_sqrtmod_prime(mp_int *n, mp_int *prime, mp_int *ret)
 {
   int res, legendre;
   mp_int t1, C, Q, S, Z, M, T, R, two;
-  unsigned long i;
+  mp_digit i;
 
   /* first handle the simple cases */
   if (mp_cmp_d(n, 0) == MP_EQ) {