Index: runtime/vm/assembler_mips_test.cc |
diff --git a/runtime/vm/assembler_mips_test.cc b/runtime/vm/assembler_mips_test.cc |
index 1e0340269680f3fff0f1b690ec594e1a04963fda..44c633f85c4d514f3ab1f48f179e758bfd64111e 100644 |
--- a/runtime/vm/assembler_mips_test.cc |
+++ b/runtime/vm/assembler_mips_test.cc |
@@ -408,18 +408,22 @@ ASSEMBLER_TEST_RUN(LoadWordUnaligned, test) { |
typedef intptr_t (*LoadWordUnaligned)(intptr_t) DART_UNUSED; |
uint8_t buffer[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0}; |
- EXPECT_EQ(0x78563412, EXECUTE_TEST_CODE_INTPTR_INTPTR( |
- LoadWordUnaligned, test->entry(), |
- reinterpret_cast<intptr_t>(&buffer[0]))); |
- EXPECT_EQ(0x9A785634, EXECUTE_TEST_CODE_INTPTR_INTPTR( |
- LoadWordUnaligned, test->entry(), |
- reinterpret_cast<intptr_t>(&buffer[1]))); |
- EXPECT_EQ(0xBC9A7856, EXECUTE_TEST_CODE_INTPTR_INTPTR( |
- LoadWordUnaligned, test->entry(), |
- reinterpret_cast<intptr_t>(&buffer[2]))); |
- EXPECT_EQ(0xDEBC9A78, EXECUTE_TEST_CODE_INTPTR_INTPTR( |
- LoadWordUnaligned, test->entry(), |
- reinterpret_cast<intptr_t>(&buffer[3]))); |
+ EXPECT_EQ( |
+ static_cast<intptr_t>(0x78563412), |
+ EXECUTE_TEST_CODE_INTPTR_INTPTR(LoadWordUnaligned, test->entry(), |
+ reinterpret_cast<intptr_t>(&buffer[0]))); |
+ EXPECT_EQ( |
+ static_cast<intptr_t>(0x9A785634), |
+ EXECUTE_TEST_CODE_INTPTR_INTPTR(LoadWordUnaligned, test->entry(), |
+ reinterpret_cast<intptr_t>(&buffer[1]))); |
+ EXPECT_EQ( |
+ static_cast<intptr_t>(0xBC9A7856), |
+ EXECUTE_TEST_CODE_INTPTR_INTPTR(LoadWordUnaligned, test->entry(), |
+ reinterpret_cast<intptr_t>(&buffer[2]))); |
+ EXPECT_EQ( |
+ static_cast<intptr_t>(0xDEBC9A78), |
+ EXECUTE_TEST_CODE_INTPTR_INTPTR(LoadWordUnaligned, test->entry(), |
+ reinterpret_cast<intptr_t>(&buffer[3]))); |
} |