diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-11-22 09:55:42 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-11-22 09:55:42 +0000 |
commit | 44e889c6280d7080baecfb55d39224e98552e9f5 (patch) | |
tree | afa09aa322932a911883cf9d564030e85150d8fe /acosh.c | |
parent | 24b500f5e0113b0b8e8aa925a5b696da03f3ad2f (diff) | |
download | mpfr-44e889c6280d7080baecfb55d39224e98552e9f5.tar.gz |
fixed some signed/unsigned warnings with g++ (please review)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5689 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acosh.c')
-rw-r--r-- | acosh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -101,7 +101,7 @@ mpfr_acosh (mpfr_ptr y, mpfr_srcptr x , mp_rnd_t rnd_mode) We need to compute ln(x) + ln(2) as 2x can overflow. TODO: write a proof and add an MPFR_ASSERTN. */ mpfr_log (t, x, GMP_RNDN); /* err(log) < 1/2 ulp(t) */ - pln2 = Nt - MPFR_PREC_MIN < MPFR_GET_EXP (t) ? + pln2 = Nt - MPFR_PREC_MIN < (mp_prec_t) MPFR_GET_EXP (t) ? MPFR_PREC_MIN : Nt - MPFR_GET_EXP (t); mpfr_init2 (ln2, pln2); mpfr_const_log2 (ln2, GMP_RNDN); /* err(ln2) < 1/2 ulp(t) */ |