diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-16 22:59:09 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-16 22:59:09 +0200 |
commit | e7e70233405a523cfe75536ac5819cbb8cfb5f17 (patch) | |
tree | f3926c4e264a5a0be930891ce0c4e306128c4fe6 | |
parent | f7a2699ac0cbb2824862439a72f23013436484de (diff) |
Fix build on Linux
-rw-r--r-- | asl/base/bit_tests.cpp | 2 | ||||
-rw-r--r-- | asl/memory/allocator.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
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 <cstdlib> |