diff options
-rw-r--r-- | al/auxeffectslot.cpp | 2 | ||||
-rw-r--r-- | al/buffer.cpp | 2 | ||||
-rw-r--r-- | al/effect.cpp | 2 | ||||
-rw-r--r-- | al/filter.cpp | 2 | ||||
-rw-r--r-- | al/source.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 85c07c89..4dc38ecc 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -164,7 +164,7 @@ bool EnsureEffectSlots(ALCcontext *context, size_t needed) size_t count{std::accumulate(context->mEffectSlotList.cbegin(), context->mEffectSlotList.cend(), size_t{0}, [](size_t cur, const EffectSlotSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) diff --git a/al/buffer.cpp b/al/buffer.cpp index 1b4f6846..de1b1e9a 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -286,7 +286,7 @@ bool EnsureBuffers(ALCdevice *device, size_t needed) { size_t count{std::accumulate(device->BufferList.cbegin(), device->BufferList.cend(), size_t{0}, [](size_t cur, const BufferSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) diff --git a/al/effect.cpp b/al/effect.cpp index c27fc8df..0bef3ce6 100644 --- a/al/effect.cpp +++ b/al/effect.cpp @@ -141,7 +141,7 @@ bool EnsureEffects(ALCdevice *device, size_t needed) { size_t count{std::accumulate(device->EffectList.cbegin(), device->EffectList.cend(), size_t{0}, [](size_t cur, const EffectSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) diff --git a/al/filter.cpp b/al/filter.cpp index 920b4ca1..2dd82bb0 100644 --- a/al/filter.cpp +++ b/al/filter.cpp @@ -283,7 +283,7 @@ bool EnsureFilters(ALCdevice *device, size_t needed) { size_t count{std::accumulate(device->FilterList.cbegin(), device->FilterList.cend(), size_t{0}, [](size_t cur, const FilterSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) diff --git a/al/source.cpp b/al/source.cpp index 3c22b620..38c4ff54 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -500,7 +500,7 @@ bool EnsureSources(ALCcontext *context, size_t needed) size_t count{std::accumulate(context->mSourceList.cbegin(), context->mSourceList.cend(), size_t{0}, [](size_t cur, const SourceSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) |