summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-17 22:03:14 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-17 22:03:14 +0000
commit4e9cc207c737bebac46d7a94b946f34ec401b3ca (patch)
treee88a43d00592930475354a2473702c7c62097ec1 /log.c
parent0ed03dbbf9e2d9646ce8993032913e9ba9acbe03 (diff)
downloadmpfr-4e9cc207c737bebac46d7a94b946f34ec401b3ca.tar.gz
Bugs fixed.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1745 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log.c')
-rw-r--r--log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/log.c b/log.c
index a9d6dee7b..3290b9e0a 100644
--- a/log.c
+++ b/log.c
@@ -82,8 +82,8 @@ mpfr_log (mpfr_ptr r, mpfr_srcptr a, mp_rnd_t rnd_mode)
if (MPFR_IS_ZERO(a))
{
MPFR_SET_INF(r);
- MPFR_SET_POS(r);
- MPFR_RET(0); /* log(0) is an exact infinity */
+ MPFR_SET_NEG(r);
+ MPFR_RET(0); /* log(0) is an exact -infinity */
}
/* If a is negative, the result is NaN */