From e7e70233405a523cfe75536ac5819cbb8cfb5f17 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 16 May 2025 22:59:09 +0200 Subject: Fix build on Linux --- asl/base/bit_tests.cpp | 2 +- asl/memory/allocator.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/asl/base/bit_tests.cpp b/asl/base/bit_tests.cpp index 48cddcd..fa05fab 100644 --- a/asl/base/bit_tests.cpp +++ b/asl/base/bit_tests.cpp @@ -11,7 +11,7 @@ ASL_TEST(has_single_bit) ASL_TEST_EXPECT(asl::has_single_bit(4U)); ASL_TEST_EXPECT(asl::has_single_bit(1024U)); ASL_TEST_EXPECT(asl::has_single_bit(0x8000'0000U)); - ASL_TEST_EXPECT(asl::has_single_bit(0x0000'8000'0000'0000ULL)); + ASL_TEST_EXPECT(asl::has_single_bit(uint64_t{0x0000'8000'0000'0000ULL})); ASL_TEST_EXPECT(!asl::has_single_bit(0U)); ASL_TEST_EXPECT(!asl::has_single_bit(3U)); ASL_TEST_EXPECT(!asl::has_single_bit(341U)); diff --git a/asl/memory/allocator.cpp b/asl/memory/allocator.cpp index 077b539..f0cf758 100644 --- a/asl/memory/allocator.cpp +++ b/asl/memory/allocator.cpp @@ -4,6 +4,7 @@ #include "asl/memory/allocator.hpp" #include "asl/base/assert.hpp" +#include "asl/base/numeric.hpp" #include "asl/memory/layout.hpp" #include -- cgit