summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-04-29 16:06:16 +0200
committerIvan Maidanski <ivmai@mail.ru>2012-04-29 16:06:16 +0200
commit1b2188891bacb153180e3b42bfea80427fa104a6 (patch)
tree8559125c00eabd70384c7c48312a162099fd3d3d
parent8ece23f37d8a854a3618c691cd776b585e5657db (diff)
Fix compiler warning in GC_check_fl_marks
* alloc.c (GC_check_fl_marks): Cast pointer passed to GC_is_marked to prevent compiler warning.
-rw-r--r--alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index 31a0ca0..290f63c 100644
--- a/alloc.c
+++ b/alloc.c
@@ -733,7 +733,7 @@ GC_INNER void GC_set_fl_marks(ptr_t q)
for (p = list; p != NULL;) {
AO_t *next;
- if (!GC_is_marked(p)) {
+ if (!GC_is_marked((ptr_t)p)) {
GC_err_printf("Unmarked object %p on list %p\n",
(void *)p, (void *)list);
ABORT("Unmarked local free list entry");