Revision: 23027
Author: [email protected]
Date: Mon Aug 11 10:06:36 2014 UTC
Log: Fix size_t/int conversions for Win64.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/459763002
http://code.google.com/p/v8/source/detail?r=23027
Modified:
/branches/bleeding_edge/test/cctest/compiler/test-simplified-lowering.cc
=======================================
---
/branches/bleeding_edge/test/cctest/compiler/test-simplified-lowering.cc
Mon Aug 11 09:40:02 2014 UTC
+++
/branches/bleeding_edge/test/cctest/compiler/test-simplified-lowering.cc
Mon Aug 11 10:06:36 2014 UTC
@@ -375,7 +375,8 @@
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 @@
// 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 @@
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.