Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: third_party/WebKit/Source/wtf/BitVector.cpp

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Supply reference for handles-are-32-bits claim Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698