aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-22 13:13:09 -0700
committerChris Robinson <[email protected]>2023-09-22 13:13:09 -0700
commitc53ed17c59345526ba41b62bd886c2cbaaca423b (patch)
tree22c1d8f985201152f07817ec2f68994aba769cee /al/auxeffectslot.cpp
parentbc5b58464ce52097efdb53c8019ba048e7ee3ba8 (diff)
Avoid casting an integer literal
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp2
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)); })};