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

Unified Diff: src/heap/heap.cc

Issue 2406913002: [heap] MemoryAllocator: Use size_t consistently (Closed)
Patch Set: Fix compilation Created 4 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
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index ac92f07a829785c384ae3faeb4d33073b855d5a5..66f9ba0943a1e05039d629cc7ecaf24289e85e41 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1171,8 +1171,9 @@ bool Heap::ReserveSpace(Reservation* reservations, List<Address>* maps) {
for (auto& chunk : *reservation) {
AllocationResult allocation;
int size = chunk.size;
- DCHECK_LE(size, MemoryAllocator::PageAreaSize(
- static_cast<AllocationSpace>(space)));
+ DCHECK_LE(static_cast<size_t>(size),
+ MemoryAllocator::PageAreaSize(
+ static_cast<AllocationSpace>(space)));
if (space == NEW_SPACE) {
allocation = new_space()->AllocateRawUnaligned(size);
} else {
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698