summaryrefslogtreecommitdiff
path: root/gen-bases.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-04-07 01:02:56 +0200
committerKevin Ryde <user42@zip.com.au>2004-04-07 01:02:56 +0200
commit932d8611db95c67796ac0de5d1564fab29206848 (patch)
tree0a907e52f56b4abb56103e36babac4de9fc13e42 /gen-bases.c
parent5f11619082827d45e80587d7d7d6406d20a2cf06 (diff)
downloadgmp-932d8611db95c67796ac0de5d1564fab29206848.tar.gz
* gen-bases.c, gen-fib.c, gen-psqr.c: For mpz_out_str, use stdout
instead of 0, in case a K&R treats int and FILE* params differently.
Diffstat (limited to 'gen-bases.c')
-rw-r--r--gen-bases.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen-bases.c b/gen-bases.c
index 28f18b6f1..e079f2c57 100644
--- a/gen-bases.c
+++ b/gen-bases.c
@@ -90,10 +90,10 @@ header (int limb_bits, int nail_bits)
printf ("/* mp_bases[10] data, as literal values */\n");
printf ("#define MP_BASES_CHARS_PER_LIMB_10 %d\n", chars_per_limb);
printf ("#define MP_BASES_BIG_BASE_10 CNST_LIMB(0x");
- mpz_out_str (0, 16, big_base);
+ mpz_out_str (stdout, 16, big_base);
printf (")\n");
printf ("#define MP_BASES_BIG_BASE_INVERTED_10 CNST_LIMB(0x");
- mpz_out_str (0, 16, big_base_inverted);
+ mpz_out_str (stdout, 16, big_base_inverted);
printf (")\n");
printf ("#define MP_BASES_NORMALIZATION_STEPS_10 %d\n", normalization_steps);
}
@@ -130,9 +130,9 @@ table (int limb_bits, int nail_bits)
{
printf ("%u, %.16f, CNST_LIMB(0x",
chars_per_limb, chars_per_bit_exactly);
- mpz_out_str (0, 16, big_base);
+ mpz_out_str (stdout, 16, big_base);
printf ("), CNST_LIMB(0x");
- mpz_out_str (0, 16, big_base_inverted);
+ mpz_out_str (stdout, 16, big_base_inverted);
printf (") },\n");
}
}