Fix thread_process_array when NO_THREADS.

(cherry picked from commit dfbeb5ae29)
This commit is contained in:
Fabio Alessandrelli 2021-02-26 12:09:55 +01:00 committed by Rémi Verschelde
parent e3664e971b
commit 9084e2e85b

View file

@ -97,7 +97,7 @@ void thread_process_array(uint32_t p_elements, C *p_instance, M p_method, U p_us
data.method = p_method; data.method = p_method;
data.instance = p_instance; data.instance = p_instance;
data.userdata = p_userdata; data.userdata = p_userdata;
data.index = 0; data.index.set(0);
data.elements = p_elements; data.elements = p_elements;
for (uint32_t i = 0; i < p_elements; i++) { for (uint32_t i = 0; i < p_elements; i++) {
data.process(i); data.process(i);