aboutsummaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2006-04-24 21:24:27 +0000
committerJulian Brown <jules@gcc.gnu.org>2006-04-24 21:24:27 +0000
commit9fff64328d6e03611eb18cae23704cebf32d2c40 (patch)
tree681021159ce14c7e9c0707332cee969fb47da4e6 /libiberty/floatformat.c
parente551ad2608228e879d774e51b935089e1bd2dae4 (diff)
downloadgcc-9fff64328d6e03611eb18cae23704cebf32d2c40.zip
gcc-9fff64328d6e03611eb18cae23704cebf32d2c40.tar.gz
gcc-9fff64328d6e03611eb18cae23704cebf32d2c40.tar.bz2
floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. From-SVN: r113228
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r--libiberty/floatformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index bd31efa..0bbb8ed 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