aboutsummaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-22 06:57:17 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-22 06:57:17 +0000
commit7c8c70e9416704d3349980711d8fa0b8825a9daa (patch)
tree3469ef763250330165a80bdbf1c8e2d35e50ea42 /libiberty/floatformat.c
parent5126ed72598d889eef94a7327665c235db4c751e (diff)
Warning fixes:
* argv.c (buildargv): Cast the result of alloca in assignment. * choose-temp.c: Include stdlib.h. * cplus-dem.c (demangle_arm_pt): Remove unused prototype. (snarf_numeric_literal): Constify first parameter. (code_for_qualifier): Avoid a gcc extension, make the parameter an int, not a char. (demangle_qualifier): Likewise. (demangle_signature): Cast the argument of a ctype function to unsigned char. (arm_pt): Add parens around assignment used as truth value. (demangle_arm_hp_template): Constify variable `args'. (do_hpacc_template_const_value): Cast the argument of a ctype function to unsigned char. (do_hpacc_template_literal): Remove unused variable `i'. (snarf_numeric_literal): Constify parameter `args'. Cast the argument of a ctype function to unsigned char. * floatformat.c (floatformat_to_double): Add explicit braces to avoid ambiguous `else'. * fnmatch.c (fnmatch): Change type of variables `c', `c1', `cstart' and `cend' to unsigned char. Cast the argument of macro `FOLD', which uses ctype functions, to unsigned char. * objalloc.c (free): Add prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r--libiberty/floatformat.c10
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)
{