aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-10 09:10:32 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-10 09:10:32 +0200
commitfe723d6129f2fde60e91e7cef52a7907a0cb479f (patch)
tree79c4f64f82ae9345b6780124257a8b71aa7a764e
parent9357838f94d2907996adadc7e5200376f3561ed4 (diff)
Fix conversion warning
-rw-r--r--Eigen/src/Core/util/IntegralConstant.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/IntegralConstant.h b/Eigen/src/Core/util/IntegralConstant.h
index 78a4705cd..bf99cd8ab 100644
--- a/Eigen/src/Core/util/IntegralConstant.h
+++ b/Eigen/src/Core/util/IntegralConstant.h
@@ -192,7 +192,7 @@ inline internal::FixedInt<N> fix() { return internal::FixedInt<N>(); }
// The generic typename T is mandatory. Otherwise, a code like fix<N> could refer to either the function above or this next overload.
// This way a code like fix<N> can only refer to the previous function.
template<int N,typename T>
-inline internal::VariableAndFixedInt<N> fix(T val) { return internal::VariableAndFixedInt<N>(val); }
+inline internal::VariableAndFixedInt<N> fix(T val) { return internal::VariableAndFixedInt<N>(internal::convert_index<int>(val)); }
#endif
#else // EIGEN_PARSED_BY_DOXYGEN