Index: test/cctest/compiler/test-run-machops.cc |
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc |
index 27f0534450d729e6d752cf11ade81f92b622ce06..06885a4921431fb571f6dccaebeae2b150845f98 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -2945,14 +2945,14 @@ TEST(RunConvertFloat64ToInt32_B) { |
for (int32_t n = 1; n < 31; ++n) { |
{ |
input = 1 << n; |
- int32_t expect = input; |
+ int32_t expect = static_cast<int32_t>(input); |
CHECK_EQ(expect, m.Call()); |
CHECK_EQ(expect, output); |
} |
{ |
input = 3 << n; |
- int32_t expect = input; |
+ int32_t expect = static_cast<int32_t>(input); |
CHECK_EQ(expect, m.Call()); |
CHECK_EQ(expect, output); |
} |