From 2cd580de1d6eab042556c50ed780cc9ac46cf660 Mon Sep 17 00:00:00 2001 From: Moritz Schulte Date: Sun, 9 Oct 2005 12:29:17 +0000 Subject: mpi/ChangeLog: 2005-10-09 Moritz Schulte * mpi-cmp.c (gcry_mpi_cmp_ui): Rewritten; correctly handle case of zero limbs in U. --- mpi/mpi-bit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mpi/mpi-bit.c') 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); -- cgit v1.2.1