summaryrefslogtreecommitdiff
path: root/mpf/div_ui.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-10 22:53:42 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-10 22:53:42 +0100
commitc3107449df767c6d6f8e3a244652ea68c5049918 (patch)
treeacc954e51a55ef2146d8ca0419cbf190d78fa02a /mpf/div_ui.c
parent8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166 (diff)
downloadgmp-c3107449df767c6d6f8e3a244652ea68c5049918.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 'mpf/div_ui.c')
-rw-r--r--mpf/div_ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpf/div_ui.c b/mpf/div_ui.c
index 66b52d2ee..fa261a9fb 100644
--- a/mpf/div_ui.c
+++ b/mpf/div_ui.c
@@ -1,6 +1,7 @@
/* mpf_div_ui -- Divide a float with an unsigned integer.
-Copyright 1993, 1994, 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1993, 1994, 1996, 2000, 2001, 2002, 2004 Free Software Foundation,
+Inc.
This file is part of the GNU MP Library.
@@ -36,7 +37,7 @@ mpf_div_ui (mpf_ptr r, mpf_srcptr u, unsigned long int v)
mp_exp_t rexp;
TMP_DECL (marker);
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (v > GMP_NUMB_MAX)
{
mpf_t vf;