summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-02-26 12:09:55 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-02-26 12:13:20 +0100
commitdfbeb5ae29f932b21600eb8d3e941b32b0943b04 (patch)
tree78fc62fd0a49540e50edab8d12c671b0742372d9
parentd7e6c20c82df9179bc4e9b7706dc7a09ee554974 (diff)
Fix thread_process_array when NO_THREADS.
-rw-r--r--core/os/threaded_array_processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/threaded_array_processor.h b/core/os/threaded_array_processor.h
index 4f270001d3..fec6473589 100644
--- a/core/os/threaded_array_processor.h
+++ b/core/os/threaded_array_processor.h
@@ -95,7 +95,7 @@ void thread_process_array(uint32_t p_elements, C *p_instance, M p_method, U p_us
data.method = p_method;
data.instance = p_instance;
data.userdata = p_userdata;
- data.index = 0;
+ data.index.set(0);
data.elements = p_elements;
for (uint32_t i = 0; i < p_elements; i++) {
data.process(i);