fix cast
This commit is contained in:
parent
e543ff319a
commit
c7f4e81deb
@ -305,7 +305,7 @@ int mp_prime_is_prime(const mp_int *a, int t, int *result)
|
|||||||
fips_rand &= mask;
|
fips_rand &= mask;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (fips_rand > ((unsigned int) INT_MAX - DIGIT_BIT)) {
|
if (fips_rand > (unsigned int)(INT_MAX - DIGIT_BIT)) {
|
||||||
len = INT_MAX / DIGIT_BIT;
|
len = INT_MAX / DIGIT_BIT;
|
||||||
} else {
|
} else {
|
||||||
len = (((int)fips_rand + DIGIT_BIT) / DIGIT_BIT);
|
len = (((int)fips_rand + DIGIT_BIT) / DIGIT_BIT);
|
||||||
|
Loading…
Reference in New Issue
Block a user