Index: test/cctest/heap/test-alloc.cc |
diff --git a/test/cctest/heap/test-alloc.cc b/test/cctest/heap/test-alloc.cc |
index 3424804d59ab3602d19945bd2f39386db70331ba..d7031e876d867b78de0585ff9a312ac60323ab3c 100644 |
--- a/test/cctest/heap/test-alloc.cc |
+++ b/test/cctest/heap/test-alloc.cc |
@@ -60,10 +60,12 @@ AllocationResult v8::internal::HeapTester::AllocateAfterFailures() { |
heap->AllocateFixedArray(10000, TENURED).ToObjectChecked(); |
// Large object space. |
- static const int kLargeObjectSpaceFillerLength = 3 * (Page::kPageSize / 10); |
- static const int kLargeObjectSpaceFillerSize = FixedArray::SizeFor( |
- kLargeObjectSpaceFillerLength); |
- CHECK(kLargeObjectSpaceFillerSize > heap->old_space()->AreaSize()); |
+ static const size_t kLargeObjectSpaceFillerLength = |
+ 3 * (Page::kPageSize / 10); |
+ static const size_t kLargeObjectSpaceFillerSize = |
+ FixedArray::SizeFor(kLargeObjectSpaceFillerLength); |
+ CHECK_GT(kLargeObjectSpaceFillerSize, |
+ static_cast<size_t>(heap->old_space()->AreaSize())); |
while (heap->OldGenerationSpaceAvailable() > kLargeObjectSpaceFillerSize) { |
heap->AllocateFixedArray( |
kLargeObjectSpaceFillerLength, TENURED).ToObjectChecked(); |