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/effect.cpp | |
parent | bc5b58464ce52097efdb53c8019ba048e7ee3ba8 (diff) |
Avoid casting an integer literal
Diffstat (limited to 'al/effect.cpp')
-rw-r--r-- | al/effect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/effect.cpp b/al/effect.cpp index 5c7f9627..c4b06407 100644 --- a/al/effect.cpp +++ b/al/effect.cpp @@ -162,7 +162,7 @@ void InitEffectParams(ALeffect *effect, ALenum type) bool EnsureEffects(ALCdevice *device, size_t needed) { - size_t count{std::accumulate(device->EffectList.cbegin(), device->EffectList.cend(), size_t{0}, + size_t count{std::accumulate(device->EffectList.cbegin(), device->EffectList.cend(), 0_uz, [](size_t cur, const EffectSubList &sublist) noexcept -> size_t { return cur + static_cast<ALuint>(al::popcount(sublist.FreeMask)); })}; |