mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
- Fixed a mistake in mpi_cmp_mpi() where longer B values are handled wrong
This commit is contained in:
parent
b78c74551f
commit
0c8f73ba8b
2 changed files with 10 additions and 1 deletions
|
|
@ -687,7 +687,7 @@ int mpi_cmp_mpi( const mpi *X, const mpi *Y )
|
|||
return( 0 );
|
||||
|
||||
if( i > j ) return( X->s );
|
||||
if( j > i ) return( -X->s );
|
||||
if( j > i ) return( -Y->s );
|
||||
|
||||
if( X->s > 0 && Y->s < 0 ) return( 1 );
|
||||
if( Y->s > 0 && X->s < 0 ) return( -1 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue