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++) {