From fcffb7dc23c05e3014e0299a4de28b6c25949d1b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 4 Dec 2023 23:21:01 -0800 Subject: Assert that a value is in the expected range --- common/alcomplex.cpp | 2 ++ 1 file changed, 2 insertions(+) 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> buffer, const double sign) } else { + assert(log2_size < 32); + for(size_t idx{1u};idx < fftsize-1;++idx) { size_t revidx{idx}; -- cgit v1.2.3