mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 09:35:33 +00:00
Remove declaration after statement
Visual Studio 2013 does not like it for some reason.
This commit is contained in:
parent
5f3019b298
commit
c587a32a9c
|
@ -953,7 +953,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;
|
||||||
|
|
||||||
if( X->n != Y->n )
|
if( X->n != Y->n )
|
||||||
return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
|
return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
|
||||||
|
@ -970,8 +970,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;
|
||||||
|
|
Loading…
Reference in a new issue