summaryrefslogtreecommitdiff
path: root/const_euler.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 12:34:21 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-06-08 12:34:21 +0000
commit94be8cbd776f1a799f021e939efabe87b0a8a052 (patch)
treee05d19c143a6148f7c21daee8b8388d61f296a33 /const_euler.c
parent71b86206d948c3c0fc94c696aa2a30e26a1a083e (diff)
downloadmpfr-94be8cbd776f1a799f021e939efabe87b0a8a052.tar.gz
Fix warning due to comparison of unsigned and signed integers.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3638 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'const_euler.c')
-rw-r--r--const_euler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/const_euler.c b/const_euler.c
index 7b642df3e..95962ac47 100644
--- a/const_euler.c
+++ b/const_euler.c
@@ -248,7 +248,7 @@ mpfr_const_euler_R (mpfr_t x, unsigned long n)
/* err(x) <= (n+1)/2^m <= (n+1)*exp(n)/2^PREC(x) */
mpfr_init2 (y, m);
- mpfr_set_si (y, -n, GMP_RNDD); /* assumed exact */
+ mpfr_set_si (y, -(long)n, GMP_RNDD); /* assumed exact */
mpfr_exp (y, y, GMP_RNDD); /* err <= ulp(y) <= exp(-n)*2^(1-m) */
mpfr_mul (x, x, y, GMP_RNDD);
/* err <= ulp(x) + (n + 1 + 2/n) / 2^prec(x)