real.c (sticky_rshift_significand): Collect sticky as unsigned long, not bool.
authorRichard Henderson <rth@redhat.com>
Wed, 18 Sep 2002 21:23:24 +0000 (14:23 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 18 Sep 2002 21:23:24 +0000 (14:23 -0700)
        * real.c (sticky_rshift_significand): Collect sticky as
        unsigned long, not bool.

From-SVN: r57284

gcc/ChangeLog
gcc/real.c

index 37ae8149c1ec60fd17cf8c1a9eaf37caf237b3b1..fec111098991b4f2219145b2df44d4a62b811ca7 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-18  Richard Henderson  <rth@redhat.com>
+
+       * real.c (sticky_rshift_significand): Collect sticky as 
+       unsigned long, not bool.
+
 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/s390.c (s390_address_cost): New function.
index dd9f9be4f9888536522d4f8047e612a7760a4ad0..cf72b4c73f2996d502c8ca29b26e2f08c1c17449 100644 (file)
@@ -239,7 +239,7 @@ sticky_rshift_significand (r, a, n)
      const struct real_value *a;
      unsigned int n;
 {
-  bool sticky = false;
+  unsigned long sticky = 0;
   unsigned int i, ofs = 0;
 
   if (n >= HOST_BITS_PER_LONG)
@@ -268,7 +268,7 @@ sticky_rshift_significand (r, a, n)
        r->sig[i] = 0;
     }
 
-  r->sig[0] |= sticky;
+  r->sig[0] |= (sticky != 0);
 }
 
 /* Right-shift the significand of A by N bits; put the result in the