Skip to content
Snippets Groups Projects
Commit 1ae37365 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Squash an unsigned comparison warning

parent 650de88e
No related branches found
No related tags found
1 merge request!1224Make the threadpool honour the int argument for number of elements to process
......@@ -321,7 +321,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,
tp->map_data_count = 0;
if (chunk == threadpool_auto_chunk_size) {
tp->map_data_chunk =
max((N / (tp->num_threads * threadpool_default_chunk_ratio)), 1);
max((N / (tp->num_threads * threadpool_default_chunk_ratio)), 1U);
} else if (chunk == threadpool_uniform_chunk_size) {
tp->map_data_chunk = threadpool_uniform_chunk_size;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment