diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-02 23:46:02 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-02 23:46:02 +0000 |
commit | dca02a61ff5b06149ae03e36a593e87e8bd1c1de (patch) | |
tree | 14cae6fbd5d271bdc27760414ad7780e75071a00 /tests/tconst_pi.c | |
parent | aa5dadb13de4035408695c4c5cfee3f767509414 (diff) | |
download | mpfr-dca02a61ff5b06149ae03e36a593e87e8bd1c1de.tar.gz |
C++ compatibility (corrected).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10411 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_pi.c')
-rw-r--r-- | tests/tconst_pi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tconst_pi.c b/tests/tconst_pi.c index a4438d379..7e592be74 100644 --- a/tests/tconst_pi.c +++ b/tests/tconst_pi.c @@ -170,13 +170,13 @@ bug20091030 (void) mpfr_set_prec (x_ref, p); for (r = 0; r < MPFR_RND_MAX; r++) { - if ((mpfr_rnd_t) r == MPFR_RNDF) + if (r == MPFR_RNDF) continue; /* the test below makes no sense */ inex = mpfr_const_pi (x, (mpfr_rnd_t) r); inex_ref = mpfr_const_pi_internal (x_ref, (mpfr_rnd_t) r); if (inex != inex_ref || mpfr_cmp (x, x_ref) != 0) { - printf ("mpfr_const_pi and mpfr_const_pi_internal disagree for rnd=%s\n", mpfr_print_rnd_mode (r)); + printf ("mpfr_const_pi and mpfr_const_pi_internal disagree for rnd=%s\n", mpfr_print_rnd_mode ((mpfr_rnd_t) r)); printf ("mpfr_const_pi gives "); mpfr_dump (x); printf ("mpfr_const_pi_internal gives "); |