Revision: 3450 Author: [email protected] Date: Thu Dec 10 09:46:45 2009 Log: Use uint64_t to keep 64 MacOS happy.
http://code.google.com/p/v8/source/detail?r=3450 Modified: /branches/bleeding_edge/test/cctest/test-macro-assembler-x64.cc ======================================= --- /branches/bleeding_edge/test/cctest/test-macro-assembler-x64.cc Wed Nov 11 01:50:06 2009 +++ /branches/bleeding_edge/test/cctest/test-macro-assembler-x64.cc Thu Dec 10 09:46:45 2009 @@ -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); } } } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
