summaryrefslogtreecommitdiff
path: root/mpz/cdiv_r_ui.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-10 22:50:26 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-10 22:50:26 +0100
commit8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166 (patch)
tree121063073ab80669808254e0015d1d841a590881 /mpz/cdiv_r_ui.c
parentbac2b8d356f585bebc7a8c90cbebfeeb293cde14 (diff)
downloadgmp-8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166.tar.gz
* mpz/aors_ui.h, mpz/cdiv_q_ui.c, mpz/cdiv_qr_ui.c, mpz/cdiv_r_ui.c,
mpz/cdiv_ui.c, mpz/ui_sub.c, mpz/fdiv_q_ui.c, mpz/fdiv_qr_ui.c, mpz/fdiv_r_ui.c, mpz/fdiv_ui.c, mpz/gcd_ui.c, mpz/iset_ui.c, mpz/lcm_ui.c, mpz/set_ui.c, mpz/tdiv_q_ui.c, mpz/tdiv_qr_ui.c, mpz/tdiv_r_ui.c, mpz/tdiv_ui.c, mpf/div_ui.c, mpf/mul_ui.c [longlong+nails]: Amend #if to avoid warnings about shift amount.
Diffstat (limited to 'mpz/cdiv_r_ui.c')
-rw-r--r--mpz/cdiv_r_ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/cdiv_r_ui.c b/mpz/cdiv_r_ui.c
index 74a918da7..70f338ff7 100644
--- a/mpz/cdiv_r_ui.c
+++ b/mpz/cdiv_r_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -44,7 +44,7 @@ mpz_cdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
nn = ABS(ns);
np = PTR(dividend);
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (divisor > GMP_NUMB_MAX)
{
mp_limb_t dp[2];