diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-11-30 11:38:58 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-11-30 11:38:58 +0100 |
commit | 8e37e2929d0319e2131e0a9f92d3c258df016eb4 (patch) | |
tree | 42ed6a4a557201acfab87e0e0058172b91a523af | |
parent | 65ca68050eade63ef61626b19b3ad073ac62ac6d (diff) | |
download | gmp-8e37e2929d0319e2131e0a9f92d3c258df016eb4.tar.gz |
(gen_consts): Correct printf types.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | gen-fac.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ 2012-11-30 Torbjorn Granlund <tege@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 @@ -191,7 +191,7 @@ gen_consts (int numb, int nail, int limb) } 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 @@ gen_consts (int numb, int nail, int limb) 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 (","); } |