Fix arm builds.

This commit is contained in:
Antonio Sánchez
2023-03-20 16:59:38 +00:00
parent fd8f410bbe
commit 2c8011c2dd
3 changed files with 6 additions and 6 deletions

View File

@@ -269,7 +269,7 @@ namespace internal {
template<typename IndexType, typename Index, Index First, Index... Is>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array<Index, 1 + sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, First, Is...>) {
return { idx[First], idx[Is]... };
return { static_cast<Index>(idx[First]), static_cast<Index>(idx[Is])... };
}
template<typename IndexType, typename Index>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE