aboutsummaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2006-04-24 21:34:41 +0000
committerJulian Brown <julian@codesourcery.com>2006-04-24 21:34:41 +0000
commitc77d28aca7f60d85f1355d311ade879a2b470e10 (patch)
treecbb152db3e1978f27d62a8a45a9beddd3cc8d33a /libiberty/floatformat.c
parentc3e2b812d0111da86f66fced7b33492261db1480 (diff)
downloadgdb-c77d28aca7f60d85f1355d311ade879a2b470e10.zip
gdb-c77d28aca7f60d85f1355d311ade879a2b470e10.tar.gz
gdb-c77d28aca7f60d85f1355d311ade879a2b470e10.tar.bz2
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
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