From 8d1deb385f73e52da214e780b50836ab2d000614 Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Fri, 22 Aug 2014 13:41:29 +0000 Subject: [PATCH] Fix build after r23316. TBR=hpayer@chromium.org Review URL: https://codereview.chromium.org/497073002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23317 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/heap-unittests/heap-unittest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/heap-unittests/heap-unittest.cc b/test/heap-unittests/heap-unittest.cc index aa7d21c..6e7b004 100644 --- a/test/heap-unittests/heap-unittest.cc +++ b/test/heap-unittests/heap-unittest.cc @@ -107,7 +107,8 @@ TEST_F(GCIdleTimeHandlerTest, IncrementalMarking1) { int idle_time_ms = 10; GCIdleTimeAction action = handler()->Compute(idle_time_ms, heap_state); EXPECT_EQ(DO_INCREMENTAL_MARKING, action.type); - EXPECT_GT(speed * idle_time_ms, action.parameter); + EXPECT_GT(speed * static_cast(idle_time_ms), + static_cast(action.parameter)); EXPECT_LT(0, action.parameter); } @@ -119,7 +120,8 @@ TEST_F(GCIdleTimeHandlerTest, IncrementalMarking2) { int idle_time_ms = 10; GCIdleTimeAction action = handler()->Compute(idle_time_ms, heap_state); EXPECT_EQ(DO_INCREMENTAL_MARKING, action.type); - EXPECT_GT(speed * idle_time_ms, action.parameter); + EXPECT_GT(speed * static_cast(idle_time_ms), + static_cast(action.parameter)); EXPECT_LT(0, action.parameter); } -- 2.7.4