From 995c9649cbaa16742ef7c9c20aa58e422ba90a35 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 11 Feb 2019 11:07:06 -0800 Subject: Move some number-related stuff to a separate header --- Alc/alcontext.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Alc/alcontext.h') 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; -- cgit v1.2.3