This commit is contained in:
Francois Perrad 2019-01-22 18:17:36 +01:00
parent e543ff319a
commit c7f4e81deb
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ int mp_prime_is_prime(const mp_int *a, int t, int *result)
fips_rand &= mask;
}
#endif
if (fips_rand > ((unsigned int) INT_MAX - DIGIT_BIT)) {
if (fips_rand > (unsigned int)(INT_MAX - DIGIT_BIT)) {
len = INT_MAX / DIGIT_BIT;
} else {
len = (((int)fips_rand + DIGIT_BIT) / DIGIT_BIT);