From 1ae37365f4c697bb36ae598e7fc0dc744546d733 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Thu, 12 Nov 2020 12:49:59 +0000 Subject: [PATCH] Squash an unsigned comparison warning --- src/threadpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threadpool.c b/src/threadpool.c index 199bcf538c..1bec817fed 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -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 { -- GitLab