From: Ivan Maidanski Date: Sun, 15 Dec 2013 16:54:12 +0000 (+0400) Subject: Fix ok_init assignment (missing cast) in GC_new_kind_inner X-Git-Tag: gc7_6_0~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66c7cbd50d468063e87269c99ebc4fa69911afa1;p=gc Fix ok_init assignment (missing cast) in GC_new_kind_inner * misc.c (GC_new_kind_inner): Add cast from int to GC_bool for ok_init. --- diff --git a/misc.c b/misc.c index 3ca8ad94..57307c1a 100644 --- a/misc.c +++ b/misc.c @@ -1773,7 +1773,7 @@ GC_API unsigned GC_CALL GC_new_kind_inner(void **fl, GC_word descr, GC_obj_kinds[result].ok_reclaim_list = 0; GC_obj_kinds[result].ok_descriptor = descr; GC_obj_kinds[result].ok_relocate_descr = adjust; - GC_obj_kinds[result].ok_init = clear; + GC_obj_kinds[result].ok_init = (GC_bool)clear; # ifdef ENABLE_DISCLAIM GC_obj_kinds[result].ok_mark_unconditionally = FALSE; GC_obj_kinds[result].ok_disclaim_proc = 0;