Index: src/heap/gc-idle-time-handler.cc |
diff --git a/src/heap/gc-idle-time-handler.cc b/src/heap/gc-idle-time-handler.cc |
index 9bc7078c7461c1782006f5089f33dbbeb6e1a9b2..92fb5530ef57acb1e5e8650a93ee914c1ed4b3f7 100644 |
--- a/src/heap/gc-idle-time-handler.cc |
+++ b/src/heap/gc-idle-time-handler.cc |
@@ -191,7 +191,7 @@ bool GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact( |
// that this currently may trigger a full garbage collection. |
GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms, |
HeapState heap_state) { |
- if (idle_time_in_ms <= 0.0) { |
+ if (static_cast<int>(idle_time_in_ms) <= 0) { |
if (heap_state.incremental_marking_stopped) { |
if (ShouldDoContextDisposalMarkCompact( |
heap_state.contexts_disposed, |