summaryrefslogtreecommitdiff
path: root/set_si.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 16:26:19 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 16:26:19 +0000
commit83c4428fadeab214993b680317a727cb1e2a50a1 (patch)
tree879c0082a45679d0e54946f5449d7762b58b38c3 /set_si.c
parent41d7b44241b63a451c3e664bdd9a640a4c255291 (diff)
downloadmpfr-83c4428fadeab214993b680317a727cb1e2a50a1.tar.gz
Remove some warnings and potential errors (Comparaison between signed and unsigned).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2563 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_si.c')
-rw-r--r--set_si.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/set_si.c b/set_si.c
index d0a8093ae..c0847c98e 100644
--- a/set_si.c
+++ b/set_si.c
@@ -72,7 +72,7 @@ mpfr_set_si (mpfr_ptr x, long i, mp_rnd_t rnd_mode)
if (MPFR_UNLIKELY(carry))
{
/* nbits is the current exponent */
- if (MPFR_UNLIKELY(nbits == __gmpfr_emax))
+ if (MPFR_UNLIKELY((mp_exp_t) nbits == __gmpfr_emax))
return mpfr_set_overflow(x, rnd_mode, (i < 0 ? -1 : 1));
MPFR_SET_EXP (x, nbits + 1);
xp[xn] = MPFR_LIMB_HIGHBIT;