Tidy up formatting.
[deliverable/binutils-gdb.git] / gas / config / atof-ieee.c
index fbf0ffb62c9e02043a6e2c5f2b37b98a3a534b8c..2e3c0dc6d0f6cfb177dfd1e4c0d67a26971bc1d0 100644 (file)
@@ -1,5 +1,5 @@
 /* atof_ieee.c - turn a Flonum into an IEEE floating point number
-   Copyright (C) 1987, 92, 93, 94, 95, 96, 97, 1998
+   Copyright (C) 1987, 92, 93, 94, 95, 96, 97, 98, 99, 2000
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -160,7 +160,7 @@ make_invalid_floating_point_number (words)
 char *
 atof_ieee (str, what_kind, words)
      char *str;                        /* Text to convert to binary. */
-     char what_kind;           /* 'd', 'f', 'g', 'h' */
+     int what_kind;            /* 'd', 'f', 'g', 'h' */
      LITTLENUM_TYPE *words;    /* Build the binary here. */
 {
   /* Extra bits for zeroed low-order bits.  The 1st MAX_PRECISION are
@@ -624,11 +624,13 @@ gen_to_words (words, precision, exponent_bits)
         don't get a sticky sign bit after shifting right, and that
         permits us to propagate the carry without any masking of bits.
         #endif */
-      for (carry = 1, lp--; carry && (lp >= words); lp--)
+      for (carry = 1, lp--; carry; lp--)
        {
          carry = *lp + carry;
          *lp = carry;
          carry >>= LITTLENUM_NUMBER_OF_BITS;
+         if (lp == words)
+           break;
        }
       if (precision == X_PRECISION && exponent_bits == 15)
        {
This page took 0.023392 seconds and 4 git commands to generate.