summaryrefslogtreecommitdiff
path: root/zeta.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-07-19 11:48:10 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-07-19 11:48:10 +0000
commit08672db050b33035d7af1e84d4b7c9dd96f3a248 (patch)
treedba5ae1ef9893823877b50ced5ff983a201c510d /zeta.c
parentb8068f27ab9114b0cb49765c84c5536e44ca67b4 (diff)
downloadmpfr-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zeta.c b/zeta.c
index 0c3edac68..958c8f8a2 100644
--- a/zeta.c
+++ b/zeta.c
@@ -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,