From afcaf15173eae6e85369d30de194ce1111da9454 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 31 Dec 2004 01:20:32 +0000 Subject: [PATCH] Fix brown-bag error. --- src/lib/kernel/bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/kernel/bitmap.c b/src/lib/kernel/bitmap.c index 88a5e7e..9dfded5 100644 --- a/src/lib/kernel/bitmap.c +++ b/src/lib/kernel/bitmap.c @@ -164,7 +164,7 @@ void bitmap_reset (struct bitmap *b, size_t bit_idx) { size_t idx = elem_idx (bit_idx); - elem_type mask = bit_mask (idx); + elem_type mask = bit_mask (bit_idx); /* This is equivalent to `b->bits[idx] &= ~mask' except that it is guaranteed to be atomic on a uniprocessor machine. See @@ -179,7 +179,7 @@ void bitmap_flip (struct bitmap *b, size_t bit_idx) { size_t idx = elem_idx (bit_idx); - elem_type mask = bit_mask (idx); + elem_type mask = bit_mask (bit_idx); /* This is equivalent to `b->bits[idx] ^= mask' except that it is guaranteed to be atomic on a uniprocessor machine. See -- 2.30.2