From 66c7cbd50d468063e87269c99ebc4fa69911afa1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 15 Dec 2013 20:54:12 +0400 Subject: [PATCH] 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. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0