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>& partitions) { - int num_partitions = partitions.size(); - eigen_assert(num_partitions == num_threads_); + eigen_assert(static_cast(partitions.size()) == num_threads_); // Pass this information to each thread queue. for (int i = 0; i < num_threads_; i++) {