summaryrefslogtreecommitdiff
path: root/tests/tconst_pi.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-13 09:11:11 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-13 09:11:11 +0000
commit8d118e07d9281d6d9c996713d705b30db341191a (patch)
tree23d1d8aebbdc1671e65ce27787b292224be1f384 /tests/tconst_pi.c
parent0b74925e3afed47e825c0689d8b92632ea9b9faa (diff)
downloadmpfr-8d118e07d9281d6d9c996713d705b30db341191a.tar.gz
Fix some problems when you define mpfr_prec_t to be an unsigned short.
Now all tests passed when mpfr_prec_t is defined to be an unsigned short on a 32 bit CPU! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3546 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_pi.c')
-rw-r--r--tests/tconst_pi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tconst_pi.c b/tests/tconst_pi.c
index f4a92da05..94796f798 100644
--- a/tests/tconst_pi.c
+++ b/tests/tconst_pi.c
@@ -44,8 +44,10 @@ check_large (void)
}
/* a worst-case to exercise recomputation */
- mpfr_set_prec (x, 33440);
- mpfr_const_pi (x, GMP_RNDZ);
+ if (MPFR_PREC_MAX > 33440) {
+ mpfr_set_prec (x, 33440);
+ mpfr_const_pi (x, GMP_RNDZ);
+ }
mpfr_clears (x, y, NULL);
}