From 1e3aa470fa6c22df8c89b1d0cef416dc5e07b6de Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 21 Feb 2017 13:56:01 +0100 Subject: [PATCH] Fix long to int conversion --- Eigen/src/Core/util/IntegralConstant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/IntegralConstant.h b/Eigen/src/Core/util/IntegralConstant.h index 91a635543..4310aada1 100644 --- a/Eigen/src/Core/util/IntegralConstant.h +++ b/Eigen/src/Core/util/IntegralConstant.h @@ -192,7 +192,7 @@ inline internal::FixedInt fix() { return internal::FixedInt(); } // The generic typename T is mandatory. Otherwise, a code like fix could refer to either the function above or this next overload. // This way a code like fix can only refer to the previous function. template -inline internal::VariableAndFixedInt fix(T val) { return internal::VariableAndFixedInt(val); } +inline internal::VariableAndFixedInt fix(T val) { return internal::VariableAndFixedInt(internal::convert_index(val)); } #endif #else // EIGEN_PARSED_BY_DOXYGEN