summaryrefslogtreecommitdiff
path: root/src/buildtool/multithreading/task_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/multithreading/task_system.cpp')
-rw-r--r--src/buildtool/multithreading/task_system.cpp2
1 files changed, 1 insertions, 1 deletions
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_);