diff options
-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> |