diff options
author | Chris Robinson <[email protected]> | 2023-09-20 20:37:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-20 20:37:04 -0700 |
commit | de9d6d722bd14ed452c02dbaa41a37bdca5df9ca (patch) | |
tree | eb9a1cd234abf8c056f325efdaf49dcfd5f91a5f | |
parent | dda61d7b0fe1de983c7af10efd321fa01c4831d8 (diff) |
Again try to fix handling an enum type
-rw-r--r-- | alc/backends/wasapi.cpp | 3 |
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) { |