summaryrefslogtreecommitdiff
path: root/src/rint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rint.c')
-rw-r--r--src/rint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rint.c b/src/rint.c
index 090b41e0d..a2c01d62b 100644
--- a/src/rint.c
+++ b/src/rint.c
@@ -191,7 +191,7 @@ mpfr_rint (mpfr_ptr r, mpfr_srcptr u, mpfr_rnd_t rnd_mode)
}
if (uflags == 0)
{ /* u is an integer; determine if it is representable in r */
- if (sh != 0 && rp[0] << (GMP_NUMB_BITS - sh) != 0)
+ if (sh != 0 && MPFR_LIMB_LSHIFT(rp[0], GMP_NUMB_BITS - sh) != 0)
uflags = 1; /* u is not representable in r */
else
{
@@ -288,7 +288,7 @@ mpfr_rint (mpfr_ptr r, mpfr_srcptr u, mpfr_rnd_t rnd_mode)
MPFR_RET(0);
MPFR_ASSERTD (rnd_away >= 0); /* rounding direction is defined */
- if (rnd_away && mpn_add_1(rp, rp, rn, MPFR_LIMB_ONE << sh))
+ if (rnd_away && mpn_add_1 (rp, rp, rn, MPFR_LIMB_ONE << sh))
{
if (exp == __gmpfr_emax)
return mpfr_overflow (r, rnd_mode, sign) >= 0 ?