aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-09-19 13:31:42 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-09-19 13:31:42 -0700
commit44d8274383d379172bedc7eed4cbc5c6ce4f88a2 (patch)
tree5c0ecc7e98a9d9942d5b9030a7a5b1d75f314266
parentd638b62dda7c1b15eacda844a8e39791e073b459 (diff)
Cast to longer type.
-rw-r--r--unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
index 9687734ff..9bd6a175d 100644
--- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
+++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
@@ -85,7 +85,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface {
}
void SetStealPartitions(const std::vector<std::pair<unsigned, unsigned>>& partitions) {
- eigen_assert(static_cast<int>(partitions.size()) == num_threads_);
+ eigen_assert(partitions.size() == static_cast<std::size_t>(num_threads_));
// Pass this information to each thread queue.
for (int i = 0; i < num_threads_; i++) {