diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-27 08:09:51 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-27 08:09:51 +0000 |
commit | f53594a1b77953ce80d290289dff74748e5f585a (patch) | |
tree | 9b53d39a447a3446de9ba64556a6cdc1f5aceda7 /gcc/real.c | |
parent | 6bc904cc9975ea5214d8d35b077be5d3ea768653 (diff) | |
download | gcc-f53594a1b77953ce80d290289dff74748e5f585a.tar.gz |
2007-05-26 Tobias Burnus <burnus@net-b.de>
PR fortran/32083
* real.c (mpfr_from_real): Fix sign of -Inf.
2007-05-26 Tobias Burnus <burnus@net-b.de>
PR fortran/32083
* gfortran.dg/transfer_simplify_3.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c index f5d842e24b5..867fdc70b03 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -4746,7 +4746,7 @@ mpfr_from_real (mpfr_ptr m, const REAL_VALUE_TYPE *r, mp_rnd_t rndmode) /* Take care of Infinity and NaN. */ if (r->cl == rvc_inf) { - mpfr_set_inf (m, r->sign); + mpfr_set_inf (m, r->sign == 1 ? -1 : 1); return; } |