diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-17 22:03:14 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-17 22:03:14 +0000 |
commit | 4e9cc207c737bebac46d7a94b946f34ec401b3ca (patch) | |
tree | e88a43d00592930475354a2473702c7c62097ec1 /log.c | |
parent | 0ed03dbbf9e2d9646ce8993032913e9ba9acbe03 (diff) | |
download | mpfr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |