summaryrefslogtreecommitdiff
path: root/tests/tcan_round.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-10-19 16:21:41 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-10-19 16:21:41 +0000
commit518becc383f29d0ac0fbaf585dd8743e7c813ff0 (patch)
treee81ccea224eb728d1952fced2a83fbdb37d7482b /tests/tcan_round.c
parent85613ee2a940ea04e88acd6bedab651df4f2f976 (diff)
downloadmpfr-518becc383f29d0ac0fbaf585dd8743e7c813ff0.tar.gz
[tests/*.c] Support the case where mpfr_exp_t is not a long int
(but with such a future extension, one should probably provide a MPFR_PRIexp macro, similar to what <inttypes.h> does). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7226 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcan_round.c')
-rw-r--r--tests/tcan_round.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcan_round.c b/tests/tcan_round.c
index 079afd0be..0b2e5b8af 100644
--- a/tests/tcan_round.c
+++ b/tests/tcan_round.c
@@ -50,7 +50,7 @@ check_round_p (void)
{
printf ("mpfr_round_p(%d) != mpfr_can_round(%d)!\n"
"bn = %ld, err0 = %ld, prec = %lu\nbp = ",
- r1, r2, n, err, (unsigned long) p);
+ r1, r2, n, (long) err, (unsigned long) p);
gmp_printf ("%NX\n", buf, n);
exit (1);
}