mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Fix compile error with armcc in mpi_is_prime()
This commit is contained in:
@ -2057,7 +2057,11 @@ int mpi_is_prime( mpi *X,
|
||||
void *p_rng )
|
||||
{
|
||||
int ret;
|
||||
const mpi XX = { 1, X->n, X->p }; /* Abs(X) */
|
||||
mpi XX;
|
||||
|
||||
XX.s = 1;
|
||||
XX.n = X->n;
|
||||
XX.p = X->p;
|
||||
|
||||
if( mpi_cmp_int( &XX, 0 ) == 0 ||
|
||||
mpi_cmp_int( &XX, 1 ) == 0 )
|
||||
|
Reference in New Issue
Block a user