diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c')
-rw-r--r-- | plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c b/plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c index 9dd10830b0..eb62885e21 100644 --- a/plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c +++ b/plugins/MirOTR/libgcrypt-1.4.6/mpi/mpi-cmp.c @@ -75,15 +75,15 @@ gcry_mpi_cmp (gcry_mpi_t u, gcry_mpi_t v) /* U and V are either both positive or both negative. */ - if( usize != vsize && !u->sign && !v->sign ) + if ( usize != vsize && !u->sign && !v->sign ) return usize - vsize; - if( usize != vsize && u->sign && v->sign ) + if ( usize != vsize && u->sign && v->sign ) return vsize + usize; - if( !usize ) + if ( !usize ) return 0; - if( !(cmp = _gcry_mpih_cmp( u->d, v->d, usize )) ) + if ( !(cmp = _gcry_mpih_cmp( u->d, v->d, usize )) ) return 0; - if( (cmp < 0?1:0) == (u->sign?1:0)) + if ( (cmp < 0?1:0) == (u->sign?1:0)) return 1; return -1; |