diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-05-12 12:36:13 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2011-05-12 12:36:13 +0000 |
commit | 96e7f3fffaee46d9ce896161b7a54402d47afc4d (patch) | |
tree | bbff542658098085e2e7c803c091ab886781a325 /tests/tcheck.c | |
parent | a76828f172de1b273e921937941a0cc7b2ccf201 (diff) | |
download | mpfr-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.c | 4 |
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) |