summaryrefslogtreecommitdiff
path: root/mpz/tstbit.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-05-06 15:10:38 +0200
committertege <tege@gmplib.org>2002-05-06 15:10:38 +0200
commitebde5db205537bc4330df4e638c6c518c3ed12ff (patch)
treedabe18b06df5d7685b68845f0b817d8a134463b9 /mpz/tstbit.c
parent0e6c3fe79785bac780c57613a11a333ec6649453 (diff)
downloadgmp-ebde5db205537bc4330df4e638c6c518c3ed12ff.tar.gz
Fix type of size variables.
Diffstat (limited to 'mpz/tstbit.c')
-rw-r--r--mpz/tstbit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/tstbit.c b/mpz/tstbit.c
index 1fb521a52..6e7099088 100644
--- a/mpz/tstbit.c
+++ b/mpz/tstbit.c
@@ -43,7 +43,7 @@ int
mpz_tstbit (mpz_srcptr u, unsigned long bit_index)
{
mp_srcptr u_ptr = PTR(u);
- int size = SIZ(u);
+ mp_size_t size = SIZ(u);
unsigned abs_size = ABS(size);
unsigned long limb_index = bit_index / GMP_NUMB_BITS;
mp_srcptr p = u_ptr + limb_index;