summaryrefslogtreecommitdiff
path: root/acos.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 12:34:21 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 12:34:21 +0000
commit94be8cbd776f1a799f021e939efabe87b0a8a052 (patch)
treee05d19c143a6148f7c21daee8b8388d61f296a33 /acos.c
parent71b86206d948c3c0fc94c696aa2a30e26a1a083e (diff)
downloadmpfr-94be8cbd776f1a799f021e939efabe87b0a8a052.tar.gz
Fix warning due to comparison of unsigned and signed integers.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3638 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acos.c')
-rw-r--r--acos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/acos.c b/acos.c
index c2c32a9ff..2d1e9f889 100644
--- a/acos.c
+++ b/acos.c
@@ -91,8 +91,8 @@ mpfr_acos (mpfr_ptr acos, mpfr_srcptr x, mp_rnd_t rnd_mode)
/* If x ~ 2^-N, acos(x) ~ PI/2 - x - x^3/6
If Prec < 2*N, we can't round since x^3/6 won't be counted. */
if (MPFR_PREC (acos) >= MPFR_PREC (x)
- && prec <= -2*MPFR_GET_EXP (x) + 5)
- prec = -2*MPFR_GET_EXP (x) + 5;
+ && (mp_exp_t) prec <= -2*MPFR_GET_EXP (x) + 5)
+ prec = (mpfr_uexp_t) (-2*MPFR_GET_EXP (x)) + 5;
mpfr_init2 (tmp, prec);
mpfr_init2 (arcc, prec);