summaryrefslogtreecommitdiff
path: root/mpz
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-05-24 11:52:14 +0200
committerTorbjorn Granlund <tege@gmplib.org>2012-05-24 11:52:14 +0200
commit892632b1943e9f6a21b9f04890c4faa8f9302539 (patch)
treeea1531cec5579b21cb3168fe0f30f2b10ddfdfee /mpz
parent908987076649a0e51310803f7c0ad61a8198026a (diff)
downloadgmp-892632b1943e9f6a21b9f04890c4faa8f9302539.tar.gz
Cast non-limb count_leading_zeros argument.
Diffstat (limited to 'mpz')
-rw-r--r--mpz/n_pow_ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/n_pow_ui.c b/mpz/n_pow_ui.c
index e9e3393a6..32a34c126 100644
--- a/mpz/n_pow_ui.c
+++ b/mpz/n_pow_ui.c
@@ -4,7 +4,7 @@
CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
FUTURE GNU MP RELEASES.
-Copyright 2001, 2002, 2005 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2005, 2012 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -406,7 +406,7 @@ mpz_n_pow_ui (mpz_ptr r, mp_srcptr bp, mp_size_t bsize, unsigned long int e)
/* Go from high to low over the bits of e, starting with i pointing at
the bit below the highest 1 (which will mean i==-1 if e==1). */
- count_leading_zeros (cnt, e);
+ count_leading_zeros (cnt, (mp_limb_t) e);
i = GMP_LIMB_BITS - cnt - 2;
#if HAVE_NATIVE_mpn_mul_2