From 8e37e2929d0319e2131e0a9f92d3c258df016eb4 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Fri, 30 Nov 2012 11:38:58 +0100 Subject: (gen_consts): Correct printf types. --- gen-fac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gen-fac.c') diff --git a/gen-fac.c b/gen-fac.c index 6fc13ab6b..0754e7ef5 100644 --- a/gen-fac.c +++ b/gen-fac.c @@ -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 (","); } -- cgit v1.2.1