Index: third_party/WebKit/Source/wtf/BitVector.cpp |
diff --git a/third_party/WebKit/Source/wtf/BitVector.cpp b/third_party/WebKit/Source/wtf/BitVector.cpp |
index 79a3322886878cb2029371adb32147a72973adc1..edac5b906f2b8bfdcfb485b885e176595ad4f216 100644 |
--- a/third_party/WebKit/Source/wtf/BitVector.cpp |
+++ b/third_party/WebKit/Source/wtf/BitVector.cpp |
@@ -78,7 +78,7 @@ BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits) |
// Because of the way BitVector stores the pointer, memory tools |
// will erroneously report a leak here. |
WTF_ANNOTATE_SCOPED_MEMORY_LEAK; |
- numBits = (numBits + bitsInPointer() - 1) & ~(bitsInPointer() - 1); |
+ numBits = (numBits + bitsInPointer() - 1) & ~(bitsInPointer() - static_cast<size_t>(1)); |
size_t size = sizeof(OutOfLineBits) + sizeof(uintptr_t) * (numBits / bitsInPointer()); |
void* allocation = Partitions::bufferMalloc(size); |
OutOfLineBits* result = new (NotNull, allocation) OutOfLineBits(numBits); |