summaryrefslogtreecommitdiff
path: root/mpz/scan0.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/scan0.c
parent27b7e07907e32759684c772ff44c82c3ef03e565 (diff)
downloadgmp-4e5ecaed372205bda620363363d693c32fd11285.tar.gz
Nailify.
Diffstat (limited to 'mpz/scan0.c')
-rw-r--r--mpz/scan0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/scan0.c b/mpz/scan0.c
index 501efc2f2..4a291e0ea 100644
--- a/mpz/scan0.c
+++ b/mpz/scan0.c
@@ -55,7 +55,7 @@ mpz_scan0 (mpz_srcptr u, unsigned long starting_bit)
/* Search for a limb which isn't all ones. If the end is reached then
the zero bit immediately past the end is returned. */
- while (limb == MP_LIMB_T_MAX)
+ while (limb == GMP_NUMB_MAX)
{
p++;
if (p == u_end)
@@ -120,5 +120,5 @@ mpz_scan0 (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;
}