diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-12 14:09:25 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-12 14:09:25 +0000 |
commit | 5674cfafe94e9ea12894e480282393e6a1b7477f (patch) | |
tree | b8d2a943922d5d32d9ce738374239149bcefe0ee /lib/sanitizer_common/sanitizer_bitvector.h | |
parent | 05a3c89d1c2f54cd7a23fe2021a3fc428b642864 (diff) |
Fix MSVS warnings in the sanitizers RTL
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bitvector.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_bitvector.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_bitvector.h b/lib/sanitizer_common/sanitizer_bitvector.h index 48aeabd44..d8472732f 100644 --- a/lib/sanitizer_common/sanitizer_bitvector.h +++ b/lib/sanitizer_common/sanitizer_bitvector.h @@ -44,7 +44,7 @@ class BasicBitVector { return bits_ != old; } - bool getBit(uptr idx) const { return bits_ & mask(idx); } + bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } uptr getAndClearFirstOne() { CHECK(!empty()); @@ -77,7 +77,9 @@ class BasicBitVector { void copyFrom(const BasicBitVector &v) { bits_ = v.bits_; } // Returns true if 'this' intersects with 'v'. - bool intersectsWith(const BasicBitVector &v) const { return bits_ & v.bits_; } + bool intersectsWith(const BasicBitVector &v) const { + return (bits_ & v.bits_) != 0; + } // for (BasicBitVector<>::Iterator it(bv); it.hasNext();) { // uptr idx = it.next(); |