This commit is contained in:
Francois Perrad 2018-12-26 08:09:57 +01:00
parent 79d47278bb
commit 29987bca9a

View File

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