summaryrefslogtreecommitdiff
path: root/tests/tconst_pi.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-11-20 21:40:00 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-11-20 21:40:00 +0000
commit236935780b3ef9f00ad9a40193a632961669ae12 (patch)
treeb0ec338c7efb369a047e93a37170d7a7a6ea2a3d /tests/tconst_pi.c
parentb342dc2ad93e6a19c4a67db3b63412ccced9aefc (diff)
downloadmpfr-236935780b3ef9f00ad9a40193a632961669ae12.tar.gz
tests/tconst_pi.c: fixed types for C++.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6550 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_pi.c')
-rw-r--r--tests/tconst_pi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tconst_pi.c b/tests/tconst_pi.c
index f9de67e4c..ea7878093 100644
--- a/tests/tconst_pi.c
+++ b/tests/tconst_pi.c
@@ -77,7 +77,7 @@ bug20091030 (void)
mpfr_t x, x_ref;
int inex, inex_ref;
mp_prec_t p;
- mpfr_rnd_t r;
+ int r;
mpfr_free_cache ();
mpfr_init2 (x, MPFR_PREC_MIN);
@@ -107,8 +107,8 @@ bug20091030 (void)
mpfr_set_prec (x_ref, p);
for (r = 0; r < MPFR_RND_MAX; r++)
{
- inex = mpfr_const_pi (x, r);
- inex_ref = mpfr_const_pi_internal (x_ref, r);
+ 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\n");