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 authored and GitHub committed 2023-12-24 18:30:48 +01:00
1 parent 3ab12eb659
commit 191b0c4d6d
1 file changed
+1 -1
+1 -1
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);