diff options
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 10c093d5..99966853 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2606,7 +2606,7 @@ void AllocateVoices(ALCcontext *context, size_t num_voices) voices.reset(new (ptr) al::FlexArray<ALvoice>{num_voices}); } - const ALsizei v_count{mini(context->VoiceCount.load(std::memory_order_relaxed), num_voices)}; + const size_t v_count{minz(context->VoiceCount.load(std::memory_order_relaxed), num_voices)}; if(context->Voices) { /* Copy the old voice data to the new storage. */ @@ -2631,7 +2631,7 @@ void AllocateVoices(ALCcontext *context, size_t num_voices) } context->Voices = std::move(voices); - context->VoiceCount.store(v_count, std::memory_order_relaxed); + context->VoiceCount.store(static_cast<ALuint>(v_count), std::memory_order_relaxed); } |