summaryrefslogtreecommitdiff
path: root/set_si.c
diff options
context:
space:
mode:
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;