]> git.llucax.com Git - software/dgc/cdgc.git/blobdiff - rt/gc/cdgc/gc.d
Use integer division to calculate the bit position
[software/dgc/cdgc.git] / rt / gc / cdgc / gc.d
index 3122215731cf726809ed8ac9abef0ad0ed5ba5f0..432aab9de01db36bf80bbfce2f1404edc10510f2 100644 (file)
@@ -651,7 +651,7 @@ void mark_range(void *pbot, void *ptop, size_t* pm_bitmask)
 
                 // Adjust bit to be at start of allocated memory block
                 if (bin <= B_PAGE)
-                    bit_i = (offset & notbinsize[bin]) >> 4;
+                    bit_i = (offset & notbinsize[bin]) / 16;
                 else if (bin == B_PAGEPLUS)
                 {
                     do