summaryrefslogtreecommitdiff
path: root/sub1.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 09:38:47 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-16 09:38:47 +0000
commitef4a25753364fe21a6cc89b698ee6073ad8b29a3 (patch)
treefa5ccca704d5ea79ea400e6c6c35af82f034c6ed /sub1.c
parentd32dad4bd4558ef34e8168e4d902b3ebb428f594 (diff)
downloadmpfr-ef4a25753364fe21a6cc89b698ee6073ad8b29a3.tar.gz
1 -> BITS_PER_MP_LIMB
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1496 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub1.c')
-rw-r--r--sub1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub1.c b/sub1.c
index 770cfd468..b6f8ede2f 100644
--- a/sub1.c
+++ b/sub1.c
@@ -188,7 +188,7 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c,
/* now perform rounding */
sh = an * BITS_PER_MP_LIMB - MPFR_PREC(a); /* last unused bits from a */
- carry = ap[0] & ((MP_LIMB_T_ONE << sh) - 1);
+ carry = ap[0] & ((MP_LIMB_T_ONE << sh) - MP_LIMB_T_ONE);
ap[0] -= carry;
if (rnd_mode == GMP_RNDN)