diff options
author | tege <tege@gmplib.org> | 2002-05-06 15:10:38 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2002-05-06 15:10:38 +0200 |
commit | ebde5db205537bc4330df4e638c6c518c3ed12ff (patch) | |
tree | dabe18b06df5d7685b68845f0b817d8a134463b9 /mpq | |
parent | 0e6c3fe79785bac780c57613a11a333ec6649453 (diff) | |
download | gmp-ebde5db205537bc4330df4e638c6c518c3ed12ff.tar.gz |
Fix type of size variables.
Diffstat (limited to 'mpq')
-rw-r--r-- | mpq/equal.c | 2 | ||||
-rw-r--r-- | mpq/get_d.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mpq/equal.c b/mpq/equal.c index 40b7b8d0a..ca76685de 100644 --- a/mpq/equal.c +++ b/mpq/equal.c @@ -26,7 +26,7 @@ MA 02111-1307, USA. */ int mpq_equal (mpq_srcptr op1, mpq_srcptr op2) { - int num1_size, num2_size, den1_size, den2_size, i; + mp_size_t num1_size, num2_size, den1_size, den2_size, i; mp_srcptr num1_ptr, num2_ptr, den1_ptr, den2_ptr; /* need fully canonical for correct results */ diff --git a/mpq/get_d.c b/mpq/get_d.c index 5587a85b4..2e55dfc6a 100644 --- a/mpq/get_d.c +++ b/mpq/get_d.c @@ -78,7 +78,7 @@ mpq_get_d (const MP_RAT *src) /* Normalize the denominator, i.e. make its most significant bit set by shifting it NORMALIZATION_STEPS bits to the left. Also shift the numerator the same number of steps (to keep the quotient the same!). */ - if (! (dp[dsize - 1] & GMP_NUMB_HIGHBIT)) + if ((dp[dsize - 1] & GMP_NUMB_HIGHBIT) == 0) { mp_ptr tp; mp_limb_t nlimb; @@ -135,7 +135,7 @@ mpq_get_d (const MP_RAT *src) { double res; mp_size_t i; - int scale = nsize - dsize - N_QLIMBS; + mp_size_t scale = nsize - dsize - N_QLIMBS; #if defined (__vax__) /* Ignore excess quotient limbs. This is necessary on a vax |