Reviewers: Benedikt Meurer,

Description:
TF: Fix windows build (implicit cast between double and int32_t).

[email protected]
BUG=

Please review this at https://codereview.chromium.org/431963002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -2 lines):
  M test/cctest/compiler/test-run-machops.cc


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);
     }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to