diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nscd/mem.c b/nscd/mem.c index 903f91f18b..0bcb2aaef5 100644 --- a/nscd/mem.c +++ b/nscd/mem.c @@ -79,6 +79,7 @@ static void markrange (BITMAP_T *mark, ref_t start, size_t len) { /* Adjust parameters for block alignment. */ + assert ((start & BLOCK_ALIGN_M1) == 0); start /= BLOCK_ALIGN; len = (len + BLOCK_ALIGN_M1) / BLOCK_ALIGN; @@ -93,7 +94,7 @@ markrange (BITMAP_T *mark, ref_t start, size_t len) return; } - mark[elem++] |= 0xff << (start % BITS); + mark[elem++] |= ALLBITS << (start % BITS); len -= BITS - (start % BITS); } |