]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Use bool instead of uint for a boolean variable
authorLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:28:45 +0000 (02:28 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:28:45 +0000 (02:28 -0300)
rt/gc/cdgc/gc.d

index f70227b5bd5a29c0722594d7a270932d9ad68848..f74409f3e5aaa7deca92196619db0af46616d428 100644 (file)
@@ -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;
                     }
                 }
             }