summaryrefslogtreecommitdiff
path: root/tests/tests.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2013-01-18 10:44:27 +0100
committerTorbjorn Granlund <tege@gmplib.org>2013-01-18 10:44:27 +0100
commit79679132d97a580053d38c16c6d155553e32b463 (patch)
tree5298e0746a7811c1fd2f8c89cf2718c74b69cea7 /tests/tests.h
parentff2ed9d67f04cccdd0b89beccc0cbe8d47583fb9 (diff)
downloadgmp-79679132d97a580053d38c16c6d155553e32b463.tar.gz
(TESTS_REPS): Fix printf argument type clashes.
Diffstat (limited to 'tests/tests.h')
-rw-r--r--tests/tests.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tests.h b/tests/tests.h
index f306cf068..c1762291d 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -427,14 +427,15 @@ istringstream : public std::istrstream {
repfactor = strtod (envval, &end); \
if (*end || repfactor <= 0) \
{ \
- fprintf (stderr, "Invalid repfactor: %ld.\n", repfactor); \
+ fprintf (stderr, "Invalid repfactor: %f.\n", repfactor); \
exit (1); \
} \
count *= repfactor; \
reps_nondefault = 1; \
} \
if (reps_nondefault) \
- printf ("Running test with %ld repetitions (include this in bug reports)\n", count); \
+ printf ("Running test with %ld repetitions (include this in bug reports)\n",\
+ (long) count); \
} while (0)