From 29987bca9ac09c6482a8caa638e5f1a99d5a6460 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 26 Dec 2018 08:09:57 +0100 Subject: [PATCH] fix cast --- bn_mp_prime_is_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bn_mp_prime_is_prime.c b/bn_mp_prime_is_prime.c index ee68adb..43d9924 100644 --- a/bn_mp_prime_is_prime.c +++ b/bn_mp_prime_is_prime.c @@ -307,7 +307,7 @@ int mp_prime_is_prime(const mp_int *a, int t, int *result) } #endif /* Ceil, because small numbers have a right to live, too, */ - len = (int)((fips_rand + DIGIT_BIT) / DIGIT_BIT); + len = (((int)fips_rand + DIGIT_BIT) / DIGIT_BIT); /* Unlikely. */ if (len < 0) { ix--;