From 32165c6f0c72fb393c7d3344f15172d33963a877 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Tue, 14 Nov 2023 13:51:27 +0000 Subject: [PATCH] Fix Wshorten-64-to-32 warning in gemm parallelizer --- Eigen/src/Core/products/Parallelizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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