From 693173e3b0ff9ddf3018e42b4e880f5aa18a978a Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 12 Aug 2022 17:04:34 +0200 Subject: Fix arch-specific type mismatch --- src/buildtool/multithreading/task_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/multithreading/task_system.cpp') diff --git a/src/buildtool/multithreading/task_system.cpp b/src/buildtool/multithreading/task_system.cpp index bde1ef2c..5ed68c68 100644 --- a/src/buildtool/multithreading/task_system.cpp +++ b/src/buildtool/multithreading/task_system.cpp @@ -6,7 +6,7 @@ TaskSystem::TaskSystem() : TaskSystem(std::thread::hardware_concurrency()) {} TaskSystem::TaskSystem(std::size_t number_of_threads) - : thread_count_{std::max(1UL, number_of_threads)}, + : thread_count_{std::max(std::size_t{1}, number_of_threads)}, total_workload_{thread_count_} { for (std::size_t index = 0; index < thread_count_; ++index) { queues_.emplace_back(&total_workload_); -- cgit v1.2.3