aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/products
diff options
context:
space:
mode:
authorGravatar Janek Kozicki <jkozicki-yade@pg.edu.pl>2019-12-23 23:52:44 +0100
committerGravatar Janek Kozicki <jkozicki-yade@pg.edu.pl>2019-12-23 23:52:44 +0100
commit00de570793b8acdc072c16d533f1740e3e061d94 (patch)
treee9073163002c4af79d48e9666993dd3a9698843f /Eigen/src/Core/products
parent636e2bb3fa147c98e9fe96971c4f0560ba132ff2 (diff)
Fix -Werror -Wfloat-conversion warning.
Diffstat (limited to 'Eigen/src/Core/products')
-rw-r--r--Eigen/src/Core/products/Parallelizer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/Parallelizer.h b/Eigen/src/Core/products/Parallelizer.h
index e01e798f1..3bdd30e5a 100644
--- a/Eigen/src/Core/products/Parallelizer.h
+++ b/Eigen/src/Core/products/Parallelizer.h
@@ -129,7 +129,7 @@ void parallelize_gemm(const Functor& func, Index rows, Index cols, Index depth,
double work = static_cast<double>(rows) * static_cast<double>(cols) *
static_cast<double>(depth);
double kMinTaskSize = 50000; // FIXME improve this heuristic.
- pb_max_threads = std::max<Index>(1, std::min<Index>(pb_max_threads, work / kMinTaskSize));
+ pb_max_threads = std::max<Index>(1, std::min<Index>(pb_max_threads, static_cast<Index>( work / kMinTaskSize ) ));
// compute the number of threads we are going to use
Index threads = std::min<Index>(nbThreads(), pb_max_threads);