From 07576213f3d65ea776480b75a3fe63d0af85264c Mon Sep 17 00:00:00 2001 From: GillesDuvert Date: Tue, 29 Aug 2023 21:57:59 +0200 Subject: [PATCH] uint unknown on Windows, bah. --- src/basegdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basegdl.cpp b/src/basegdl.cpp index 955738c42..8f7a8fcd2 100644 --- a/src/basegdl.cpp +++ b/src/basegdl.cpp @@ -857,7 +857,7 @@ int parallelize(SizeT nEl, int modifier) { // here we have more than 1 thread, so n operations will be divided between nt threads. It becomes inefficient if nt is large, to start so many threads for diminishing returns. // I propose to enable as many threads as necessary so that each thread will compute at least CpuTPOOL_MIN_ELTS: if (CpuTPOOL_MIN_ELTS < 1) return CpuTPOOL_NTHREADS; // the user did not understand IDL's doc about threadpools?. - uint nchunk = nEl / CpuTPOOL_MIN_ELTS; + int nchunk = nEl / CpuTPOOL_MIN_ELTS; nchunk++; //to be sure if (nThreads > nchunk) nThreads = nchunk; // std::cerr << nThreads;