From: Bart Van Assche Date: Thu, 23 Apr 2009 15:41:26 +0000 (+0000) Subject: Fixed bug in bm0_clear_range() that caused this fucntion to clear more bits than... X-Git-Tag: svn/VALGRIND_3_5_0~798 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed101b08055c951d08560a3a91c2d606fb3b365d;p=thirdparty%2Fvalgrind.git 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 --- 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)