diff options
author | Chris Robinson <[email protected]> | 2019-09-28 16:41:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-28 19:14:27 -0700 |
commit | 00250042c819b5900e1ff3bd03285cffebd93464 (patch) | |
tree | 60172b2174d31190fead2245b341d37225b3c7af /alc/alu.cpp | |
parent | 7783fa738c678ad88c8f4571f48ad0191767cbf1 (diff) |
Check MAX_RESAMPLER_PADDING properly to ensure it's large enough
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 4e9bf9e0..21eea1db 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -82,6 +82,10 @@ #include "bsinc_inc.h" +static_assert(!(MAX_RESAMPLER_PADDING&1) && MAX_RESAMPLER_PADDING >= bsinc24.m[0], + "MAX_RESAMPLER_PADDING is not a multiple of two, or is too small"); + + namespace { using namespace std::placeholders; |