diff options
author | Chris Robinson <[email protected]> | 2023-09-22 13:13:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-22 13:13:09 -0700 |
commit | c53ed17c59345526ba41b62bd886c2cbaaca423b (patch) | |
tree | 22c1d8f985201152f07817ec2f68994aba769cee /al/auxeffectslot.cpp | |
parent | bc5b58464ce52097efdb53c8019ba048e7ee3ba8 (diff) |
Avoid casting an integer literal
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 66a65b5c..33252410 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -239,7 +239,7 @@ EffectSlotType EffectSlotTypeFromEnum(ALenum type) bool EnsureEffectSlots(ALCcontext *context, size_t needed) { size_t count{std::accumulate(context->mEffectSlotList.cbegin(), - context->mEffectSlotList.cend(), size_t{0}, + context->mEffectSlotList.cend(), 0_uz, [](size_t cur, const EffectSlotSubList &sublist) noexcept -> size_t { return cur + static_cast<ALuint>(al::popcount(sublist.FreeMask)); })}; |