From 191b0c4d6d556449e0d3fd769ae18669eeb8ea61 Mon Sep 17 00:00:00 2001 From: matoro <12038583+matoro@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:30:48 -0500 Subject: [PATCH] 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. --- test/tests/BitSetTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/BitSetTests.cpp b/test/tests/BitSetTests.cpp index cef793ef9a..3faf270e4b 100644 --- a/test/tests/BitSetTests.cpp +++ b/test/tests/BitSetTests.cpp @@ -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); static_assert(bits.data().size() == 4); ASSERT_EQ(bits.data()[0], ~0uLL);