diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-03-27 14:57:20 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-03-27 14:57:20 +0000 |
commit | fbe353f1f8ceb4e1512b9933642e46f85e750bd9 (patch) | |
tree | 19d6b6799f955e41fb59c6785ba3c2e768cde866 /tests/tbeta.c | |
parent | 033cc850d5f607013069a724a173fd761eb927fc (diff) | |
download | mpfr-fbe353f1f8ceb4e1512b9933642e46f85e750bd9.tar.gz |
[tests/tbeta.c] Fixed a macro (use of mpfr_printf, missing cast).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11395 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tbeta.c')
-rw-r--r-- | tests/tbeta.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/tbeta.c b/tests/tbeta.c index 832c2c730..45897a888 100644 --- a/tests/tbeta.c +++ b/tests/tbeta.c @@ -24,10 +24,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* TODO: Test the ternary value and the flags. Add tgeneric tests. */ -/* FIXME: do not use mpfr_printf in the tests. */ #define FAILED(p, r, z, w, expected, rnd_mode) do { \ - mpfr_printf ("prec=%d, rnd=%s case failed for:", \ - p, mpfr_print_rnd_mode (rnd_mode)); \ + printf ("prec=%d, rnd=%s case failed for:", \ + (int) p, mpfr_print_rnd_mode (rnd_mode)); \ printf("\n z ="); \ mpfr_out_str (stdout, 2, 0, z, MPFR_RNDN); \ printf("\n w ="); \ @@ -37,7 +36,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., printf("\n ac.="); \ mpfr_out_str (stdout, 2, 0, r, MPFR_RNDN); \ printf("\n\n"); \ - } while (0) \ + } while (0) #define TEST(p, r, z, w, expected) TESTRND(p, r, z, w, expected, MPFR_RNDN) |