From: Leandro Lucarella Date: Sun, 29 Aug 2010 05:28:45 +0000 (-0300) Subject: Use bool instead of uint for a boolean variable X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/commitdiff_plain/a6bb99c1425b06fd32a50fa1616f0e73147e326f Use bool instead of uint for a boolean variable --- 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; } } }