diff options
author | Chris Robinson <[email protected]> | 2023-12-04 23:21:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-04 23:21:01 -0800 |
commit | fcffb7dc23c05e3014e0299a4de28b6c25949d1b (patch) | |
tree | 1cc89c3976bf2c779a80ab19f49fb3c353f59854 | |
parent | 4fb7577c0d7a88aed059b537d8c43e4fd324cefe (diff) |
Assert that a value is in the expected range
-rw-r--r-- | common/alcomplex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp index 82a0c43c..f2de5f51 100644 --- a/common/alcomplex.cpp +++ b/common/alcomplex.cpp @@ -155,6 +155,8 @@ void complex_fft(const al::span<std::complex<double>> buffer, const double sign) } else { + assert(log2_size < 32); + for(size_t idx{1u};idx < fftsize-1;++idx) { size_t revidx{idx}; |