[Gmp-commit] /var/hg/gmp: :-D

mercurial at gmplib.org mercurial at gmplib.org
Fri Apr 20 12:00:00 CEST 2012


details:   /var/hg/gmp/rev/fa36d825eb81
changeset: 14874:fa36d825eb81
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Apr 20 11:59:54 2012 +0200
description:
:-D

diffstat:

 mpz/clrbit.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 24e651a4dd41 -r fa36d825eb81 mpz/clrbit.c
--- a/mpz/clrbit.c	Fri Apr 20 11:54:59 2012 +0200
+++ b/mpz/clrbit.c	Fri Apr 20 11:59:54 2012 +0200
@@ -43,8 +43,8 @@
 	  if (UNLIKELY (dlimb == 0 && limb_idx == dsize-1))
 	    {
 	      /* high limb became zero, must normalize */
-	      MPN_NORMALIZE (dp, dsize);
-	      SIZ (d) = dsize;
+	      MPN_NORMALIZE (dp, limb_idx);
+	      SIZ (d) = limb_idx;
 	    }
 	}
       else


More information about the gmp-commit mailing list