diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-08-12 17:04:34 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-13 10:51:13 +0200 |
commit | 693173e3b0ff9ddf3018e42b4e880f5aa18a978a (patch) | |
tree | 572bb6ddbe08423cc30067b571470d02bcad3b52 /src/buildtool/multithreading/task_system.cpp | |
parent | acd0d057e957e3f2f682c1bb4ad88cfc32609ad2 (diff) | |
download | justbuild-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.cpp | 2 |
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_); |