aboutsummaryrefslogtreecommitdiffstats
path: root/al/filter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-10-03 08:02:57 -0700
committerChris Robinson <[email protected]>2021-10-03 08:02:57 -0700
commitf92cc479d82fbf85591d8918bbf469c4b329c31c (patch)
treef18d486b88aa274cd172496c133e6a82c1033dbb /al/filter.cpp
parent53d9033ec70019353dfa255b63cbe9eb21c70888 (diff)
Silence some static analysis warnings
Diffstat (limited to 'al/filter.cpp')
-rw-r--r--al/filter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/al/filter.cpp b/al/filter.cpp
index 21a8fee7..1753580e 100644
--- a/al/filter.cpp
+++ b/al/filter.cpp
@@ -355,10 +355,10 @@ ALfilter *AllocFilter(ALCdevice *device)
{
auto sublist = std::find_if(device->FilterList.begin(), device->FilterList.end(),
[](const FilterSubList &entry) noexcept -> bool
- { return entry.FreeMask != 0; }
- );
+ { return entry.FreeMask != 0; });
auto lidx = static_cast<ALuint>(std::distance(device->FilterList.begin(), sublist));
auto slidx = static_cast<ALuint>(al::countr_zero(sublist->FreeMask));
+ ASSUME(slidx < 64);
ALfilter *filter{::new(sublist->Filters + slidx) ALfilter{}};
InitFilterParams(filter, AL_FILTER_NULL);