diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-07-19 11:48:10 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-07-19 11:48:10 +0000 |
commit | 08672db050b33035d7af1e84d4b7c9dd96f3a248 (patch) | |
tree | dba5ae1ef9893823877b50ced5ff983a201c510d /zeta.c | |
parent | b8068f27ab9114b0cb49765c84c5536e44ca67b4 (diff) | |
download | mpfr-08672db050b33035d7af1e84d4b7c9dd96f3a248.tar.gz |
Fix an unsigned/signed comparison.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2944 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'zeta.c')
-rw-r--r-- | zeta.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -180,7 +180,8 @@ mpfr_zeta_pos (mpfr_t z, mpfr_srcptr s, mp_rnd_t rnd_mode) #endif d = precz + 11; /* we want that s1 = s-1 is exact, i.e. we should have PREC(s1) >= EXP(s) */ - mpfr_init2 (s1, (precs > MPFR_EXP(s)) ? precs : MPFR_EXP(s)); + mpfr_init2 (s1, (precs > (mp_exp_unsigned_t) MPFR_EXP(s)) ? + precs : (mp_exp_unsigned_t) MPFR_EXP(s)); do { /* Principal loop: we compute, in z_pre, |