1
0
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:
matoro
2023-12-24 12:30:48 -05:00
committed by GitHub
parent 3ab12eb659
commit 191b0c4d6d

View File

@@ -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);