From 99d439649e4696ba61e49224d30c29ccd17b6b78 Mon Sep 17 00:00:00 2001 From: ss3git <3226388001@jcom.home.ne.jp> Date: Fri, 17 Nov 2023 02:43:46 +0900 Subject: [PATCH] fix for debug build --- src/src_sinc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/src_sinc.c b/src/src_sinc.c index 3fb7742..9c93f02 100644 --- a/src/src_sinc.c +++ b/src/src_sinc.c @@ -567,9 +567,9 @@ sinc_multithread_vari_process(SRC_STATE *state, SRC_DATA *data) omp_set_dynamic(0); omp_set_num_threads(num_of_threads); - assert(num_of_threads == omp_get_num_threads()); + //assert(num_of_threads == omp_get_max_threads()); - if (num_of_threads == 1) // w/o OpenMP + if (num_of_threads == 1 || omp_get_max_threads() == 1 ) // w/o OpenMP { per_thread_retval[0] = _sinc_multichan_vari_process_mt(1, 0, state, data, state);