summaryrefslogtreecommitdiff
path: root/src/buildtool/multithreading/task_system.cpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-08-12 17:04:34 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-09-13 10:51:13 +0200
commit693173e3b0ff9ddf3018e42b4e880f5aa18a978a (patch)
tree572bb6ddbe08423cc30067b571470d02bcad3b52 /src/buildtool/multithreading/task_system.cpp
parentacd0d057e957e3f2f682c1bb4ad88cfc32609ad2 (diff)
downloadjustbuild-693173e3b0ff9ddf3018e42b4e880f5aa18a978a.tar.gz
Fix arch-specific type mismatch
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_);