- Fixed a mistake in mpi_cmp_mpi() where longer B values are handled wrong
This commit is contained in:
parent
b78c74551f
commit
0c8f73ba8b
@ -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 );
|
||||
|
@ -138,6 +138,15 @@ mpi_cmp_mpi:10:"-2":10:"-3":1
|
||||
Base test mpi_cmp_mpi (Negative values) #3
|
||||
mpi_cmp_mpi:10:"-2":10:"-1":-1
|
||||
|
||||
Base test mpi_cmp_mpi (Mixed values) #4
|
||||
mpi_cmp_mpi:10:"-3":10:"2":-1
|
||||
|
||||
Base test mpi_cmp_mpi (Mixed values) #5
|
||||
mpi_cmp_mpi:10:"2":10:"-3":1
|
||||
|
||||
Base test mpi_cmp_mpi (Mixed values) #6
|
||||
mpi_cmp_mpi:10:"-2":10:"31231231289798":-1
|
||||
|
||||
Base test mpi_cmp_abs #1
|
||||
mpi_cmp_abs:10:"693":10:"693":0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user