Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Unified Diff: test/cctest/test-macro-assembler-x64.cc

Issue 486007: Use int64_t to keep 64 MacOS happy. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-macro-assembler-x64.cc
===================================================================
--- test/cctest/test-macro-assembler-x64.cc (revision 3448)
+++ test/cctest/test-macro-assembler-x64.cc (working copy)
@@ -91,14 +91,14 @@
TEST(Smi) {
// Check that C++ Smi operations work as expected.
- intptr_t test_numbers[] = {
+ int64_t test_numbers[] = {
0, 1, -1, 127, 128, -128, -129, 255, 256, -256, -257,
- Smi::kMaxValue, static_cast<intptr_t>(Smi::kMaxValue) + 1,
- Smi::kMinValue, static_cast<intptr_t>(Smi::kMinValue) - 1
+ Smi::kMaxValue, static_cast<int64_t>(Smi::kMaxValue) + 1,
+ Smi::kMinValue, static_cast<int64_t>(Smi::kMinValue) - 1
};
int test_number_count = 15;
for (int i = 0; i < test_number_count; i++) {
- intptr_t number = test_numbers[i];
+ int64_t number = test_numbers[i];
bool is_valid = Smi::IsValid(number);
bool is_in_range = number >= Smi::kMinValue && number <= Smi::kMaxValue;
CHECK_EQ(is_in_range, is_valid);
@@ -108,8 +108,8 @@
Smi* smi_from_int = Smi::FromInt(static_cast<int32_t>(number));
CHECK_EQ(smi_from_int, smi_from_intptr);
}
- int smi_value = smi_from_intptr->value();
- CHECK_EQ(number, static_cast<intptr_t>(smi_value));
+ int64_t smi_value = smi_from_intptr->value();
+ CHECK_EQ(number, smi_value);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698