]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed bug in bm0_clear_range() that caused this fucntion to clear more bits than...
authorBart Van Assche <bvanassche@acm.org>
Thu, 23 Apr 2009 15:41:26 +0000 (15:41 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Apr 2009 15:41:26 +0000 (15:41 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9588

drd/drd_bitmap.h

index 84f1eb514b5a79c2d59b406e436ea2093413cef9..1689435df4e80c049f3a6bf77513fc6617a99b71 100644 (file)
@@ -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)