diff options
author | jules <jules@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-24 21:24:27 +0000 |
---|---|---|
committer | jules <jules@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-24 21:24:27 +0000 |
commit | 173dae522fe6b6ed02770b46ec6d7c6abc0622d9 (patch) | |
tree | 681021159ce14c7e9c0707332cee969fb47da4e6 /libiberty/floatformat.c | |
parent | 719ee5e55f0ab57e7c09bf8a71e534c45f39ddfa (diff) | |
download | gcc-173dae522fe6b6ed02770b46ec6d7c6abc0622d9.tar.gz |
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113228 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r-- | libiberty/floatformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index bd31efac7c1..0bbb8ed9889 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -394,7 +394,7 @@ floatformat_to_double (const struct floatformat *fmt, /* Handle denormalized numbers. FIXME: What should we do for non-IEEE formats? */ - if (exponent == 0 && mant != 0) + if (special_exponent && exponent == 0 && mant != 0) dto += ldexp ((double)mant, (- fmt->exp_bias - mant_bits |