diff --git a/src/spaces.cc b/src/spaces.cc index a12221a28a..0d76a72fdf 100644 --- a/src/spaces.cc +++ b/src/spaces.cc @@ -283,7 +283,8 @@ bool MemoryAllocator::SetUp(intptr_t capacity, intptr_t capacity_executable) { void MemoryAllocator::TearDown() { // Check that spaces were torn down before MemoryAllocator. - CHECK_EQ(memory_allocator_reserved_, static_cast(0)); + CHECK_EQ(static_cast(memory_allocator_reserved_), + static_cast(0)); // TODO(gc) this will be true again when we fix FreeMemory. // ASSERT(size_executable_ == 0); capacity_ = 0;