summaryrefslogtreecommitdiff
path: root/exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'exp.c')
-rw-r--r--exp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exp.c b/exp.c
index 4682896b8..56fbb9ce9 100644
--- a/exp.c
+++ b/exp.c
@@ -1,6 +1,6 @@
/* mpfr_exp -- exponential of a floating-point number
-Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation.
+Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation.
Contributed by the Spaces project.
This file is part of the MPFR Library.
@@ -82,9 +82,9 @@ mpfr_exp (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
{
int signx = MPFR_SIGN(x);
+ MPFR_SET_POS(y);
if (MPFR_IS_NEG_SIGN(signx) && (rnd_mode == GMP_RNDD))
{
- MPFR_SET_POS(y);
mpfr_setmax (y, 0); /* y = 1 - epsilon */
return -1;
}