diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-12-13 01:13:23 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-12-13 01:13:23 +0100 |
commit | 11347e880f434f18b0eaa584c1741a023705efe2 (patch) | |
tree | 74e6d0865093f1951d7e595f157b0f681c9bbbdb /tests | |
parent | 6b5d33b2fcdfd7e9c580468a09310b3f337d2941 (diff) | |
download | gmp-11347e880f434f18b0eaa584c1741a023705efe2.tar.gz |
* tests/refmpn.c (refmpn_rsh1add_n, refmpn_rsh1sub_n): Parens around
GMP_NUMB_BITS - 1 with ">>", to quieten gcc -Wall.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/refmpn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/refmpn.c b/tests/refmpn.c index 0e0b011e1..9ee7a8869 100644 --- a/tests/refmpn.c +++ b/tests/refmpn.c @@ -1,8 +1,8 @@ /* Reference mpn functions, designed to be simple, portable and independent of the normal gmp code. Speed isn't a consideration. -Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, -Inc. +Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software +Foundation, Inc. This file is part of the GNU MP Library. @@ -619,7 +619,7 @@ refmpn_rsh1add_n (mp_ptr rp, mp_srcptr up, mp_srcptr vp, mp_size_t n) ASSERT_MPN (vp, n); cya = mpn_add_n (rp, up, vp, n); - cys = mpn_rshift (rp, rp, n, 1) >> GMP_NUMB_BITS - 1; + cys = mpn_rshift (rp, rp, n, 1) >> (GMP_NUMB_BITS - 1); rp[n - 1] |= cya << (GMP_NUMB_BITS - 1); return cys; } @@ -634,7 +634,7 @@ refmpn_rsh1sub_n (mp_ptr rp, mp_srcptr up, mp_srcptr vp, mp_size_t n) ASSERT_MPN (vp, n); cya = mpn_sub_n (rp, up, vp, n); - cys = mpn_rshift (rp, rp, n, 1) >> GMP_NUMB_BITS - 1; + cys = mpn_rshift (rp, rp, n, 1) >> (GMP_NUMB_BITS - 1); rp[n - 1] |= cya << (GMP_NUMB_BITS - 1); return cys; } |