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 { |