Reviewers: jochen (slow - soon OOO),

Description:
Fix size_t/int conversions for Win64.

[email protected]
BUG=

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

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

Affected files (+4, -3 lines):
  M test/cctest/compiler/test-simplified-lowering.cc


Index: test/cctest/compiler/test-simplified-lowering.cc
diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc index 31550c9e6b0d69887122320a6a1bb26dbc640b32..4ca5be1d6283a75788c6bb068c433e471625c436 100644
--- a/test/cctest/compiler/test-simplified-lowering.cc
+++ b/test/cctest/compiler/test-simplified-lowering.cc
@@ -375,7 +375,8 @@ class AccessTester : public HandleAndZoneScope {
         original_elements(orig),
         num_elements(num),
         untagged_array(static_cast<E*>(malloc(ByteSize()))),
-        tagged_array(main_isolate()->factory()->NewByteArray(ByteSize())) {
+        tagged_array(main_isolate()->factory()->NewByteArray(
+            static_cast<int>(ByteSize()))) {
     Reinitialize();
   }

@@ -386,7 +387,7 @@ class AccessTester : public HandleAndZoneScope {
// Nuke both {untagged_array} and {tagged_array} with {original_elements}.
   void Reinitialize() {
     memcpy(untagged_array, original_elements, ByteSize());
-    CHECK_EQ(ByteSize(), tagged_array->length());
+    CHECK_EQ(static_cast<int>(ByteSize()), tagged_array->length());
     E* raw = reinterpret_cast<E*>(tagged_array->GetDataStartAddress());
     memcpy(raw, original_elements, ByteSize());
   }
@@ -510,7 +511,7 @@ class AccessTester : public HandleAndZoneScope {
   void BoundsCheck(int index) {
     CHECK_GE(index, 0);
     CHECK_LT(index, static_cast<int>(num_elements));
-    CHECK_EQ(ByteSize(), tagged_array->length());
+    CHECK_EQ(static_cast<int>(ByteSize()), tagged_array->length());
   }
 };



--
--
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