diff options
author | Julian Brown <julian@codesourcery.com> | 2006-04-24 21:37:24 +0000 |
---|---|---|
committer | Julian Brown <julian@codesourcery.com> | 2006-04-24 21:37:24 +0000 |
commit | f92e2bf4ff9754315dba1cc1383ee1e51818569c (patch) | |
tree | 4d7320894efd13bd676d963937aa8f014f63875e /libiberty | |
parent | 9ac02f867725658c6ce9d0255a74141e0fffac8c (diff) | |
download | gdb-f92e2bf4ff9754315dba1cc1383ee1e51818569c.zip gdb-f92e2bf4ff9754315dba1cc1383ee1e51818569c.tar.gz gdb-f92e2bf4ff9754315dba1cc1383ee1e51818569c.tar.bz2 |
* libiberty/floatformat.c (floatformat_to_double): Fix (biased)
exponent=0 case.
Diffstat (limited to 'libiberty')
-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 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 |