From ed101b08055c951d08560a3a91c2d606fb3b365d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 23 Apr 2009 15:41:26 +0000 Subject: [PATCH] Fixed bug in bm0_clear_range() that caused this fucntion to clear more bits than it should clear. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9588 --- drd/drd_bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drd/drd_bitmap.h b/drd/drd_bitmap.h index 84f1eb514b..1689435df4 100644 --- a/drd/drd_bitmap.h +++ b/drd/drd_bitmap.h @@ -142,7 +142,7 @@ static __inline__ void bm0_clear_range(UWord* bm0, tl_assert(UWORD_MSB(a1) == UWORD_MSB(a1 + size - 1)); #endif bm0[a1 >> BITS_PER_BITS_PER_UWORD] - &= ~(((UWord)1 << size) - 1) << UWORD_LSB(a1); + &= ~((((UWord)1 << size) - 1) << UWORD_LSB(a1)); } static __inline__ UWord bm0_is_set(const UWord* bm0, const Addr a) -- 2.47.3