summaryrefslogtreecommitdiff
path: root/atan.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 11:45:06 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 11:45:06 +0000
commit71b86206d948c3c0fc94c696aa2a30e26a1a083e (patch)
tree6c10d5d44183eb4df2cc3355b331778eb054ade1 /atan.c
parente32b518b5f09a738b2117e0e657bfce594691b1e (diff)
downloadmpfr-71b86206d948c3c0fc94c696aa2a30e26a1a083e.tar.gz
Fix warnings due to comparaison between signed and unsigned.
Reinclude string.h for strtofr. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3637 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'atan.c')
-rw-r--r--atan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atan.c b/atan.c
index 766b70e4a..51913dc82 100644
--- a/atan.c
+++ b/atan.c
@@ -43,7 +43,7 @@ mpfr_atan_aux (mpfr_ptr y, mpz_ptr p, long r, int m,
unsigned long n, i, k, j, l;
mp_exp_t diff, expo;
unsigned int P2i;
- int neg;
+ int neg, im;
/* Set Tables */
S = tab; /* S */
@@ -73,8 +73,8 @@ mpfr_atan_aux (mpfr_ptr y, mpz_ptr p, long r, int m,
if (mpz_cmp_ui (p, 1) != 0) {
/* P!= 1: Precomputed ptoj table */
mpz_set (ptoj[0], p);
- for (i = 1 ; i < m ; i++)
- mpz_mul (ptoj[i], ptoj[i-1], ptoj[i-1]);
+ for (im = 1 ; im < m ; im++)
+ mpz_mul (ptoj[im], ptoj[im-1], ptoj[im-1]);
/* Main loop */
k = 0;
n = 1UL << m;