diff options
author | Chris Robinson <[email protected]> | 2023-09-20 20:14:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-20 20:14:33 -0700 |
commit | dda61d7b0fe1de983c7af10efd321fa01c4831d8 (patch) | |
tree | a14ab1a452e7fe8cede358bd44ca1fdf3619dca0 /alc/backends | |
parent | 3d5bd75559ff85ea2a019968361212482afd904b (diff) |
Don't assume an enum's underlying type
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/wasapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index de974774..25845527 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1244,7 +1244,7 @@ FORCE_ALIGN int WasapiPlayback::mixerSpatialProc() { if(channels.empty()) UNLIKELY { - DWORD flags{audio.mStaticMask}; + auto flags = al::to_underlying(audio.mStaticMask); channels.reserve(static_cast<uint>(al::popcount(flags))); while(flags) { |