Remove declaration after statement

Visual Studio 2013 does not like it for some reason.
This commit is contained in:
Janos Follath 2019-09-23 09:19:14 +01:00
parent 4c3408b140
commit 4ea2319726

View file

@ -1105,7 +1105,7 @@ int mbedtls_mpi_cmp_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
int *ret ) int *ret )
{ {
size_t i; size_t i;
unsigned int cond, done; unsigned int cond, done, sign_X, sign_Y;
MPI_VALIDATE_RET( X != NULL ); MPI_VALIDATE_RET( X != NULL );
MPI_VALIDATE_RET( Y != NULL ); MPI_VALIDATE_RET( Y != NULL );
@ -1126,8 +1126,8 @@ int mbedtls_mpi_cmp_mpi_ct( const mbedtls_mpi *X, const mbedtls_mpi *Y,
* done = 1; * done = 1;
* } * }
*/ */
unsigned int sign_X = X->s; sign_X = X->s;
unsigned int sign_Y = Y->s; sign_Y = Y->s;
cond = ( ( sign_X ^ sign_Y ) >> ( sizeof( unsigned int ) * 8 - 1 ) ); cond = ( ( sign_X ^ sign_Y ) >> ( sizeof( unsigned int ) * 8 - 1 ) );
*ret = cond * X->s; *ret = cond * X->s;
done = cond; done = cond;