aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-09-21 00:33:01 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-09-20 20:33:01 -0400
commita4b5b2ae8d59dbaf8c855590cbd78ad3f5c47b64 (patch)
treef199797ca3390272f700ba72bbe88fb00859db38
parente7b6a0ee34197334228ed9185ebaf84d5b975110 (diff)
downloadgcc-a4b5b2ae8d59dbaf8c855590cbd78ad3f5c47b64.zip
gcc-a4b5b2ae8d59dbaf8c855590cbd78ad3f5c47b64.tar.gz
gcc-a4b5b2ae8d59dbaf8c855590cbd78ad3f5c47b64.tar.bz2
* ggc-page.c (ggc_marked_p): Properly convert return to boolean.
From-SVN: r45715
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ggc-page.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1419033..bbc7d9e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
+
2001-09-20 DJ Delorie <dj@redhat.com>
* c-typeck.c (really_start_incremental_init): Discriminate
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index 60517ae..8f2d32e 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -1027,7 +1027,7 @@ ggc_marked_p (p)
word = bit / HOST_BITS_PER_LONG;
mask = (unsigned long) 1 << (bit % HOST_BITS_PER_LONG);
- return entry->in_use_p[word] & mask;
+ return (entry->in_use_p[word] & mask) != 0;
}
/* Return the size of the gc-able object P. */