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

mercurial at gmplib.org mercurial at gmplib.org
Sat Jan 18 10:28:24 UTC 2014


details:   /var/hg/gmp/rev/cbe9b3018b81
changeset: 16193:cbe9b3018b81
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sat Jan 18 11:26:14 2014 +0100
description:
Improve portability of the test suite.

details:   /var/hg/gmp/rev/4e1746596abe
changeset: 16194:4e1746596abe
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sat Jan 18 11:27:15 2014 +0100
description:
ChangeLog

details:   /var/hg/gmp/rev/deb5d4e386a0
changeset: 16195:deb5d4e386a0
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sat Jan 18 11:28:17 2014 +0100
description:
Copyright year.

diffstat:

 ChangeLog           |  5 +++++
 tests/t-constants.c |  4 ++--
 tests/t-parity.c    |  4 ++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r 9649b744a5a8 -r deb5d4e386a0 ChangeLog
--- a/ChangeLog	Sat Jan 18 09:32:07 2014 +0100
+++ b/ChangeLog	Sat Jan 18 11:28:17 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-18 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* tests/t-parity.c: Use 1UL to generate unsigned constants.
+	* tests/t-constants.c: Disable a non portable (unneeded) check.
+
 2014-01-18  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/generic/sec_aors_1.c (mpn_sec_add_1, mpn_sec_sub_1): New
diff -r 9649b744a5a8 -r deb5d4e386a0 tests/t-constants.c
--- a/tests/t-constants.c	Sat Jan 18 09:32:07 2014 +0100
+++ b/tests/t-constants.c	Sat Jan 18 11:28:17 2014 +0100
@@ -1,6 +1,6 @@
 /* Check the values of some constants.
 
-Copyright 2000-2003 Free Software Foundation, Inc.
+Copyright 2000-2003, 2014 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -218,8 +218,8 @@
   CHECK_HIGHBIT (ULONG_HIGHBIT,     unsigned long,  "0x%lX");
   CHECK_HIGHBIT (UINT_HIGHBIT,      unsigned int,   "0x%X");
   CHECK_HIGHBIT (USHRT_HIGHBIT,     unsigned short, "0x%hX");
+#if 0 /* Bad! */
   CHECK_HIGHBIT (LONG_HIGHBIT,      long,           "0x%lX");
-#if 0 /* Bad! */
   CHECK_HIGHBIT (INT_HIGHBIT,       int,            "0x%X");
   CHECK_HIGHBIT (SHRT_HIGHBIT,      short,          "0x%hX");
 #endif
diff -r 9649b744a5a8 -r deb5d4e386a0 tests/t-parity.c
--- a/tests/t-parity.c	Sat Jan 18 09:32:07 2014 +0100
+++ b/tests/t-parity.c	Sat Jan 18 11:28:17 2014 +0100
@@ -1,6 +1,6 @@
 /* Test ULONG_PARITY.
 
-Copyright 2002 Free Software Foundation, Inc.
+Copyright 2002, 2014 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library test suite.
 
@@ -50,7 +50,7 @@
   check_one (1, 0x3111L);
 
   for (i = 0; i < BITS_PER_ULONG; i++)
-    check_one (1, 1L << i);
+    check_one (1, 1UL << i);
 }
 
 


More information about the gmp-commit mailing list