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