mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
TEST: Fix C++11 compat warnings.
This commit is contained in:
parent
ce45caaf83
commit
f1e58efe90
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user