aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-20 20:37:04 -0700
committerChris Robinson <[email protected]>2023-09-20 20:37:04 -0700
commitde9d6d722bd14ed452c02dbaa41a37bdca5df9ca (patch)
treeeb9a1cd234abf8c056f325efdaf49dcfd5f91a5f
parentdda61d7b0fe1de983c7af10efd321fa01c4831d8 (diff)
Again try to fix handling an enum type
-rw-r--r--alc/backends/wasapi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index 25845527..1fd37e37 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1244,7 +1244,8 @@ FORCE_ALIGN int WasapiPlayback::mixerSpatialProc()
{
if(channels.empty()) UNLIKELY
{
- auto flags = al::to_underlying(audio.mStaticMask);
+ using UT = std::make_unsigned_t<decltype(audio.mStaticMask)>;
+ auto flags = static_cast<UT>(al::to_underlying(audio.mStaticMask));
channels.reserve(static_cast<uint>(al::popcount(flags)));
while(flags)
{