TEST: Fix C++11 compat warnings.

This commit is contained in:
Johannes Schickel 2015-01-04 20:55:01 +01:00
parent ce45caaf83
commit f1e58efe90

View File

@ -11,13 +11,13 @@ class EndianTestSuite : public CxxTest::TestSuite
}
void test_READ_BE_UINT64() {
const char data[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xFF};
const byte data[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xFF};
uint64 value = READ_BE_UINT64(data);
TS_ASSERT_EQUALS(value, 0x123456789ABCDEFFULL);
}
void test_READ_LE_UINT64() {
const char data[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xFF};
const byte data[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xFF};
uint64 value = READ_LE_UINT64(data);
TS_ASSERT_EQUALS(value, 0xFFEDCBA978563412ULL);
}