From 44d8274383d379172bedc7eed4cbc5c6ce4f88a2 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 19 Sep 2018 13:31:42 -0700 Subject: [PATCH] Cast to longer type. --- unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>& partitions) { - eigen_assert(static_cast(partitions.size()) == num_threads_); + eigen_assert(partitions.size() == static_cast(num_threads_)); // Pass this information to each thread queue. for (int i = 0; i < num_threads_; i++) {