Commit a13a7e7c5c5cf355e61a34dd3cdb0668a757ce69

Francois Perrad 2019-04-10T15:46:59

missing cast

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_ilogb.c b/bn_mp_ilogb.c
index fe7fe39..458b812 100644
--- a/bn_mp_ilogb.c
+++ b/bn_mp_ilogb.c
@@ -145,7 +145,7 @@ int mp_ilogb(mp_int *a, mp_digit base, mp_int *c)
          err = MP_VAL;
          goto LBL_ERR;
       }
-      if ((err = mp_expt_d(&bi_base, (mid - low), &t)) != MP_OKAY) {
+      if ((err = mp_expt_d(&bi_base, (mp_digit)(mid - low), &t)) != MP_OKAY) {
          goto LBL_ERR;
       }
       if ((err = mp_mul(&bracket_low, &t, &bracket_mid)) != MP_OKAY) {