[Gmp-commit] /var/hg/gmp-5.1: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Feb 19 16:37:44 CET 2013


details:   /var/hg/gmp-5.1/rev/44354a3dd965
changeset: 15393:44354a3dd965
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Feb 19 16:37:23 2013 +0100
description:
mini-gmp/tests/t-reuse.c: Fix typo causing the same negation condition to be applied to all operands. (See 2013-02-03, Torbjorn)

details:   /var/hg/gmp-5.1/rev/f57748568347
changeset: 15394:f57748568347
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Feb 19 16:37:31 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog                |  3 +++
 mini-gmp/tests/t-reuse.c |  4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 82cdaf1cdeab -r f57748568347 ChangeLog
--- a/ChangeLog	Tue Feb 19 07:40:49 2013 +0100
+++ b/ChangeLog	Tue Feb 19 16:37:31 2013 +0100
@@ -2,6 +2,9 @@
 
 	* mini-gmp/mini-gmp.c: Move asserts to work-around a compiler bug.
 
+	* mini-gmp/tests/t-reuse.c: Fix typo causing the same negation condition
+	to be applied to all operands. (See 2013-02-03, Torbjorn)
+
 2013-02-16  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmpxx.h: Include <algorithm>.
diff -r 82cdaf1cdeab -r f57748568347 mini-gmp/tests/t-reuse.c
--- a/mini-gmp/tests/t-reuse.c	Tue Feb 19 07:40:49 2013 +0100
+++ b/mini-gmp/tests/t-reuse.c	Tue Feb 19 16:37:31 2013 +0100
@@ -192,9 +192,9 @@
       bsi = mpz_get_ui (bs);
       if ((bsi & 1) != 0)
 	mpz_neg (in1, in1);
-      if ((bsi & 1) != 0)
+      if ((bsi & 2) != 0)
 	mpz_neg (in2, in2);
-      if ((bsi & 1) != 0)
+      if ((bsi & 4) != 0)
 	mpz_neg (in3, in3);
 
       for (i = 0; i < sizeof (dss_funcs) / sizeof (dss_func); i++)


More information about the gmp-commit mailing list