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

Unified Diff: Source/wtf/PartitionAlloc.cpp

Issue 48663004: Fix more warnings in wtf (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix more warnings in wtf. Created 7 years, 2 months 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: Source/wtf/PartitionAlloc.cpp
diff --git a/Source/wtf/PartitionAlloc.cpp b/Source/wtf/PartitionAlloc.cpp
index 64525528db3cbba82e5c84aa4fed1682e1426495..adfaf1d1857c9007d36b9ceeadeee912a2fded19 100644
--- a/Source/wtf/PartitionAlloc.cpp
+++ b/Source/wtf/PartitionAlloc.cpp
@@ -359,7 +359,7 @@ void* partitionAllocSlowPath(PartitionBucket* bucket)
// slots.
// This tags the page as full so that free'ing can tell, and move
// the page back into the non-full page list when appropriate.
- ASSERT(next->numAllocatedSlots == partitionBucketSlots(bucket));
+ ASSERT(next->numAllocatedSlots == static_cast<int>(partitionBucketSlots(bucket)));
next->numAllocatedSlots = -next->numAllocatedSlots;
partitionUnlinkPage(next);
++bucket->numFullPages;
@@ -372,7 +372,7 @@ void* partitionAllocSlowPath(PartitionBucket* bucket)
// replace this single page with the new page we choose.
ASSERT(page == page->next);
ASSERT(page == page->prev);
- ASSERT(page == &bucket->root->seedPage || page->numAllocatedSlots == partitionBucketSlots(bucket));
+ ASSERT(page == &bucket->root->seedPage || page->numAllocatedSlots == static_cast<int>(partitionBucketSlots(bucket)));
if (LIKELY(page != &bucket->root->seedPage)) {
page->numAllocatedSlots = -page->numAllocatedSlots;
++bucket->numFullPages;
@@ -441,7 +441,7 @@ void partitionFreeSlowPath(PartitionPageHeader* page)
partitionLinkPageBefore(page, bucket->currPage);
bucket->currPage = page;
page->numAllocatedSlots = -page->numAllocatedSlots - 2;
- ASSERT(page->numAllocatedSlots == partitionBucketSlots(bucket) - 1);
+ ASSERT(page->numAllocatedSlots == static_cast<int>(partitionBucketSlots(bucket) - 1));
--bucket->numFullPages;
}
}
« no previous file with comments | « Source/wtf/FastMalloc.cpp ('k') | Source/wtf/TCSystemAlloc.cpp » ('j') | Source/wtf/dtoa.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698