summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tstdint.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tstdint.c b/tests/tstdint.c
index 4ef16de40..3773b0202 100644
--- a/tests/tstdint.c
+++ b/tests/tstdint.c
@@ -53,7 +53,11 @@ main (void)
mpfr_clear (x);
if (j != 1)
{
- printf ("Error: got %jd instead of 1.\n", j);
+#ifdef MPFR_PRINTF_MAXLM
+ printf ("Error: got %" MPFR_PRINTF_MAXLM "d instead of 1.\n", j);
+#else
+ printf ("Error: did not get 1.\n");
+#endif
exit (1);
}