diff options
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r-- | libiberty/floatformat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index 6ad290cceb0..c4f21e4ce89 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -192,10 +192,12 @@ floatformat_to_double (fmt, from, to) increment the exponent by one to account for the integer bit. */ if (!special_exponent) - if (fmt->intbit == floatformat_intbit_no) - dto = ldexp (1.0, exponent); - else - exponent++; + { + if (fmt->intbit == floatformat_intbit_no) + dto = ldexp (1.0, exponent); + else + exponent++; + } while (mant_bits_left > 0) { |