]> granicus.if.org Git - gc/commitdiff
Fix compiler warning in GC_check_fl_marks
authorIvan Maidanski <ivmai@mail.ru>
Sun, 29 Apr 2012 14:06:16 +0000 (18:06 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 29 Apr 2012 14:06:16 +0000 (18:06 +0400)
* alloc.c (GC_check_fl_marks): Cast pointer passed to GC_is_marked to
prevent compiler warning.

alloc.c

diff --git a/alloc.c b/alloc.c
index 31a0ca027ff671540927ae524cafc3f34da911bb..290f63c2bcfc5207c79f5d36dc50fdb3935a8469 100644 (file)
--- 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");