diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h index c3172aa49..59335aff6 100644 --- a/Eigen/src/Core/products/Parallelizer.h +++ b/Eigen/src/Core/products/Parallelizer.h @@ -178,7 +178,7 @@ EIGEN_STRONG_INLINE void parallelize_gemm(const Functor& func, Index rows, Index pb_max_threads = std::max(1, std::min(pb_max_threads, static_cast( work / kMinTaskSize ) )); // compute the number of threads we are going to use - int threads = std::min(nbThreads(), pb_max_threads); + int threads = std::min(nbThreads(), static_cast(pb_max_threads)); // if multi-threading is explicitly disabled, not useful, or if we already are // inside a parallel session, then abort multi-threading