diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-19 13:27:55 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-19 13:27:55 -0700 |
commit | d638b62dda7c1b15eacda844a8e39791e073b459 (patch) | |
tree | f9879756bea342d0e456dc45f6e46b5c2f1066b1 /unsupported/Eigen/CXX11/src/ThreadPool | |
parent | db9c9df59aaca890e64c99e63d0147365cc1c8f2 (diff) |
Silence compiler warning.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/ThreadPool')
-rw-r--r-- | unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h index 2130625bc..9687734ff 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h @@ -85,8 +85,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { } void SetStealPartitions(const std::vector<std::pair<unsigned, unsigned>>& partitions) { - int num_partitions = partitions.size(); - eigen_assert(num_partitions == num_threads_); + eigen_assert(static_cast<int>(partitions.size()) == num_threads_); // Pass this information to each thread queue. for (int i = 0; i < num_threads_; i++) { |