diff options
author | Moritz Schulte <mo@g10code.com> | 2005-10-09 12:29:17 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2005-10-09 12:29:17 +0000 |
commit | 2cd580de1d6eab042556c50ed780cc9ac46cf660 (patch) | |
tree | 80f00730315e81bbbbb802eecd97a122fe43f826 /mpi/mpi-bit.c | |
parent | ffc925ee22289bea3ae79ee93d51f634d1bc3e21 (diff) | |
download | libgcrypt-2cd580de1d6eab042556c50ed780cc9ac46cf660.tar.gz |
mpi/ChangeLog:
2005-10-09 Moritz Schulte <moritz@g10code.com>
* mpi-cmp.c (gcry_mpi_cmp_ui): Rewritten; correctly handle case of
zero limbs in U.
Diffstat (limited to 'mpi/mpi-bit.c')
-rw-r--r-- | mpi/mpi-bit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c index 26853efd..2d917995 100644 --- a/mpi/mpi-bit.c +++ b/mpi/mpi-bit.c @@ -163,7 +163,8 @@ gcry_mpi_clear_highbit( gcry_mpi_t a, unsigned int n ) bitno = n % BITS_PER_MPI_LIMB; if( limbno >= a->nlimbs ) - return; /* not allocated, so need to clear bits :-) */ + return; /* not allocated, therefore no need to clear bits + :-) */ for( ; bitno < BITS_PER_MPI_LIMB; bitno++ ) a->d[limbno] &= ~(A_LIMB_1 << bitno); |