diff options
author | Chris Robinson <[email protected]> | 2021-10-03 08:02:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-10-03 08:02:57 -0700 |
commit | f92cc479d82fbf85591d8918bbf469c4b329c31c (patch) | |
tree | f18d486b88aa274cd172496c133e6a82c1033dbb /al/effect.cpp | |
parent | 53d9033ec70019353dfa255b63cbe9eb21c70888 (diff) |
Silence some static analysis warnings
Diffstat (limited to 'al/effect.cpp')
-rw-r--r-- | al/effect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/effect.cpp b/al/effect.cpp index a15194fd..1d2b9b3c 100644 --- a/al/effect.cpp +++ b/al/effect.cpp @@ -182,10 +182,10 @@ ALeffect *AllocEffect(ALCdevice *device) { auto sublist = std::find_if(device->EffectList.begin(), device->EffectList.end(), [](const EffectSubList &entry) noexcept -> bool - { return entry.FreeMask != 0; } - ); + { return entry.FreeMask != 0; }); auto lidx = static_cast<ALuint>(std::distance(device->EffectList.begin(), sublist)); auto slidx = static_cast<ALuint>(al::countr_zero(sublist->FreeMask)); + ASSUME(slidx < 64); ALeffect *effect{::new (sublist->Effects + slidx) ALeffect{}}; InitEffectParams(effect, AL_EFFECT_NULL); |