diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-12 10:25:34 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-04-12 10:25:34 +0000 |
commit | d4ab36cc814012a82534f9b7610628e631f3dfe7 (patch) | |
tree | 1894730362adc9a917f5fa563efc63f0457d02b5 /const_log2.c | |
parent | 2bc3e773b5bb76ff2401e2a607df48c4bdd96989 (diff) | |
download | mpfr-d4ab36cc814012a82534f9b7610628e631f3dfe7.tar.gz |
Types fixed in const_log2.c (this fixes the tconst_log2 crash).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1861 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'const_log2.c')
-rw-r--r-- | const_log2.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/const_log2.c b/const_log2.c index e67520ce7..728c849d1 100644 --- a/const_log2.c +++ b/const_log2.c @@ -27,7 +27,7 @@ MA 02111-1307, USA. */ #include "mpfr-impl.h" mpfr_t __mpfr_const_log2; /* stored value of log(2) */ -int __mpfr_const_log2_prec=0; /* precision of stored value */ +mp_prec_t __mpfr_const_log2_prec=0; /* precision of stored value */ mp_rnd_t __mpfr_const_log2_rnd; /* rounding mode of stored value */ static int mpfr_aux_log2 _PROTO ((mpfr_ptr, mpz_srcptr, int, int)); @@ -56,13 +56,13 @@ static int mpfr_const_aux_log2 _PROTO ((mpfr_ptr, mp_rnd_t)); static int mpfr_const_aux_log2 (mpfr_ptr mylog, mp_rnd_t rnd_mode) { - int prec; + mp_prec_t prec; mpfr_t tmp1, tmp2, result,tmp3; mpz_t cst; int good = 0; int logn; - int prec_i_want = MPFR_PREC(mylog); - int prec_x; + mp_prec_t prec_i_want = MPFR_PREC(mylog); + mp_prec_t prec_x; mpz_init(cst); logn = _mpfr_ceil_log2 ((double) MPFR_PREC(mylog)); @@ -127,7 +127,8 @@ mpfr_const_aux_log2 (mpfr_ptr mylog, mp_rnd_t rnd_mode) void mpfr_const_log2 (mpfr_ptr x, mp_rnd_t rnd_mode) { - int N, k, precx; mpz_t s, t, u; + mp_prec_t N, k, precx; + mpz_t s, t, u; precx = MPFR_PREC(x); MPFR_CLEAR_FLAGS(x); |