mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Use __LP64__ for BitSet 64-bit blocksize conditional check
The canonical way to check for 64-bit system is __LP64__ preprocessor define. This allows to build and pass test suite on ppc64le.
This commit is contained in:
@@ -90,7 +90,7 @@ TEST(BitTest, test_big)
|
||||
static_assert(size == 32u);
|
||||
|
||||
bits.flip();
|
||||
#if defined(_M_X64) || defined(_M_ARM64) || defined(__x86_64__)
|
||||
#if defined(__LP64__) || defined(_WIN64)
|
||||
static_assert(std::is_same_v<decltype(bits)::BlockType, uint64_t>);
|
||||
static_assert(bits.data().size() == 4);
|
||||
ASSERT_EQ(bits.data()[0], ~0uLL);
|
||||
|
||||
Reference in New Issue
Block a user