Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5bd833960be97a26f44f34c4b7652b91372496b2..1c966b350d2aee49a480e56c4f1c53b8619f25bf 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4265,8 +4265,10 @@ void Heap::MakeHeapIterable() { |
void Heap::AdvanceIdleIncrementalMarking(int idle_time_in_ms) { |
- intptr_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize( |
- idle_time_in_ms, tracer_.IncrementalMarkingSpeedInBytesPerMillisecond()); |
+ intptr_t step_size = |
+ static_cast<size_t>(GCIdleTimeHandler::EstimateMarkingStepSize( |
+ idle_time_in_ms, |
+ tracer_.IncrementalMarkingSpeedInBytesPerMillisecond())); |
incremental_marking()->Step(step_size, |
IncrementalMarking::NO_GC_VIA_STACK_GUARD, true); |