[Gmp-commit] /var/hg/gmp: (gen_consts): Correct printf types.

mercurial at gmplib.org mercurial at gmplib.org
Fri Nov 30 11:39:02 CET 2012


details:   /var/hg/gmp/rev/b505f9b2f0d2
changeset: 15155:b505f9b2f0d2
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Nov 30 11:38:58 2012 +0100
description:
(gen_consts): Correct printf types.

diffstat:

 ChangeLog |  2 ++
 gen-fac.c |  4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 960357362079 -r b505f9b2f0d2 ChangeLog
--- a/ChangeLog	Fri Nov 30 10:40:50 2012 +0100
+++ b/ChangeLog	Fri Nov 30 11:38:58 2012 +0100
@@ -1,5 +1,7 @@
 2012-11-30  Torbjorn Granlund  <tege at gmplib.org>
 
+	* gen-fac.c (gen_consts): Correct printf types.
+
 	* mpn/arm/v7a/cora15/gmp-mparam.h: New file.
 
 	* configure.in (arm*-*-*): New compiler optional "tune".  Pass value for
diff -r 960357362079 -r b505f9b2f0d2 gen-fac.c
--- a/gen-fac.c	Fri Nov 30 10:40:50 2012 +0100
+++ b/gen-fac.c	Fri Nov 30 11:38:58 2012 +0100
@@ -191,7 +191,7 @@
     }
   printf ("\n");
   printf
-    ("#define TABLE_LIMIT_2N_MINUS_POPC_2N %i\n", ofe + 1);
+    ("#define TABLE_LIMIT_2N_MINUS_POPC_2N %lu\n", ofe + 1);
 
 
   ofl = (ofl + 1) / 2;
@@ -242,7 +242,7 @@
   for (b = ofl; b <= ofe; b++)
     {
       mpz_bin_uiui (x, 2 * b, b);
-      printf ("%lu",mpz_remove_twos (x));
+      printf ("%d", mpz_remove_twos (x));
       if (b != ofe)
 	printf (",");
     }


More information about the gmp-commit mailing list