summaryrefslogtreecommitdiff
path: root/tests/tcheck.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-05-12 12:36:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-05-12 12:36:13 +0000
commit96e7f3fffaee46d9ce896161b7a54402d47afc4d (patch)
treebbff542658098085e2e7c803c091ab886781a325 /tests/tcheck.c
parenta76828f172de1b273e921937941a0cc7b2ccf201 (diff)
downloadmpfr-96e7f3fffaee46d9ce896161b7a54402d47afc4d.tar.gz
Fixed printf's calls: support the case where mpfr_prec_t is not a long
(or unsigned long). [merged changeset r7643 from the exp-int branch] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7686 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcheck.c')
-rw-r--r--tests/tcheck.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tcheck.c b/tests/tcheck.c
index 9b45cfb64..ca226c770 100644
--- a/tests/tcheck.c
+++ b/tests/tcheck.c
@@ -25,7 +25,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include "mpfr-test.h"
-#define ERROR(s) printf("mpfr_check failed " s " Prec=%lu\n", pr), exit(1)
+#define ERROR(s) \
+ (printf ("mpfr_check failed " s " Prec=%lu\n", (unsigned long) pr), \
+ exit(1))
int
main (void)