summaryrefslogtreecommitdiff
path: root/mpz/scan1.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-19 01:07:09 +0200
committertege <tege@gmplib.org>2002-04-19 01:07:09 +0200
commit4e5ecaed372205bda620363363d693c32fd11285 (patch)
tree14b20dbb48b1d6aa41424b687a61ca0b0fd1781c /mpz/scan1.c
parent27b7e07907e32759684c772ff44c82c3ef03e565 (diff)
downloadgmp-4e5ecaed372205bda620363363d693c32fd11285.tar.gz
Nailify.
Diffstat (limited to 'mpz/scan1.c')
-rw-r--r--mpz/scan1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/scan1.c b/mpz/scan1.c
index 9d318cf24..e293c117e 100644
--- a/mpz/scan1.c
+++ b/mpz/scan1.c
@@ -120,7 +120,7 @@ mpz_scan1 (mpz_srcptr u, unsigned long starting_bit)
/* Search for a limb which is not all ones. If the end is reached
then the zero immediately past the end is the result. */
- while (limb == MP_LIMB_T_MAX)
+ while (limb == GMP_NUMB_MAX)
{
p++;
if (p == u_end)
@@ -138,5 +138,5 @@ mpz_scan1 (mpz_srcptr u, unsigned long starting_bit)
limb &= -limb;
count_leading_zeros (cnt, limb);
- return (p - u_ptr) * GMP_NUMB_BITS + GMP_NUMB_BITS-1 - cnt;
+ return (p - u_ptr) * GMP_NUMB_BITS + GMP_LIMB_BITS - 1 - cnt;
}