aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/ThreadPool
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-09-19 13:27:55 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-09-19 13:27:55 -0700
commitd638b62dda7c1b15eacda844a8e39791e073b459 (patch)
treef9879756bea342d0e456dc45f6e46b5c2f1066b1 /unsupported/Eigen/CXX11/src/ThreadPool
parentdb9c9df59aaca890e64c99e63d0147365cc1c8f2 (diff)
Silence compiler warning.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/ThreadPool')
-rw-r--r--unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h3
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++) {