aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{