From a6bb99c1425b06fd32a50fa1616f0e73147e326f Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 29 Aug 2010 02:28:45 -0300 Subject: [PATCH] Use bool instead of uint for a boolean variable --- rt/gc/cdgc/gc.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rt/gc/cdgc/gc.d b/rt/gc/cdgc/gc.d index f70227b..f74409f 100644 --- a/rt/gc/cdgc/gc.d +++ b/rt/gc/cdgc/gc.d @@ -615,7 +615,7 @@ void mark_range(void *pbot, void *ptop, size_t* pm_bitmask) void **p1 = cast(void **)pbot; void **p2 = cast(void **)ptop; size_t pcache = 0; - uint changes = 0; + bool changes = false; size_t type_size = pm_bitmask[0]; size_t* pm_bits = pm_bitmask + 1; @@ -670,7 +670,7 @@ void mark_range(void *pbot, void *ptop, size_t* pm_bitmask) if (!pool.noscan.test(bit_i)) { pool.scan.set(bit_i); - changes = 1; + changes = true; } } } -- 2.43.0