summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-15 12:39:24 +0200
committertege <tege@gmplib.org>2002-04-15 12:39:24 +0200
commit9b9765ef37e625f6e64fa7c885c058eecd621571 (patch)
tree72cbcd3ccb38119ab25d3ae8d014d1762ed315b2 /gmp-h.in
parente24eeb9f7d5b4b1fde4abd9a4a3e5dabd3e534b4 (diff)
downloadgmp-9b9765ef37e625f6e64fa7c885c058eecd621571.tar.gz
(__GMPN_ADD, __GMPN_SUB): Nailify.
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmp-h.in b/gmp-h.in
index 02bfd59a1..f0b14e5a3 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -1695,10 +1695,10 @@ mpq_neg (mpq_ptr __gmp_w, mpq_srcptr __gmp_u)
#define __GMPN_ADD(cout, wp, xp, xsize, yp, ysize) \
__GMPN_AORS (cout, wp, xp, xsize, yp, ysize, mpn_add_n, \
- (((wp)[__gmp_i++] = __gmp_x + 1) == 0))
+ (((wp)[__gmp_i++] = (__gmp_x + 1) & GMP_NUMB_MASK) == 0))
#define __GMPN_SUB(cout, wp, xp, xsize, yp, ysize) \
__GMPN_AORS (cout, wp, xp, xsize, yp, ysize, mpn_sub_n, \
- (((wp)[__gmp_i++] = __gmp_x - 1), __gmp_x == 0))
+ (((wp)[__gmp_i++] = (__gmp_x - 1) & GMP_NUMB_MASK), __gmp_x == 0))
/* The use of __gmp_i indexing is designed to ensure a compile time src==dst