diff options
author | Chris Robinson <[email protected]> | 2019-02-11 11:07:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-11 11:07:06 -0800 |
commit | 995c9649cbaa16742ef7c9c20aa58e422ba90a35 (patch) | |
tree | cd924ffb8f5b360964652bb6dd2fc54511a2dc88 /Alc/alcontext.h | |
parent | 69d8c6546d1468473f34092727b3ce776a5f89e5 (diff) |
Move some number-related stuff to a separate header
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r-- | Alc/alcontext.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h index 213949f2..bdf5f2fe 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -15,6 +15,7 @@ #include "vector.h" #include "threads.h" #include "almalloc.h" +#include "alnumeric.h" #include "alListener.h" @@ -41,13 +42,13 @@ enum class DistanceModel { }; struct SourceSubList { - uint64_t FreeMask{~uint64_t{}}; + uint64_t FreeMask{~0_u64}; ALsource *Sources{nullptr}; /* 64 */ SourceSubList() noexcept = default; SourceSubList(const SourceSubList&) = delete; SourceSubList(SourceSubList&& rhs) noexcept : FreeMask{rhs.FreeMask}, Sources{rhs.Sources} - { rhs.FreeMask = ~uint64_t{}; rhs.Sources = nullptr; } + { rhs.FreeMask = ~0_u64; rhs.Sources = nullptr; } ~SourceSubList(); SourceSubList& operator=(const SourceSubList&) = delete; |