mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-29 00:02:40 +08:00
Fix warnings in IndexList array_prod
This commit is contained in:
parent
42705ba574
commit
f313126dab
@ -351,9 +351,9 @@ struct IndexPairList : internal::IndexTuple<FirstType, OtherTypes...> {
|
|||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
template<typename FirstType, typename... OtherTypes>
|
template<typename FirstType, typename... OtherTypes>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE size_t array_prod(const IndexList<FirstType, OtherTypes...>& sizes) {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex array_prod(const IndexList<FirstType, OtherTypes...>& sizes) {
|
||||||
size_t result = 1;
|
DenseIndex result = 1;
|
||||||
for (int i = 0; i < array_size<IndexList<FirstType, OtherTypes...> >::value; ++i) {
|
for (size_t i = 0; i < array_size<IndexList<FirstType, OtherTypes...> >::value; ++i) {
|
||||||
result *= sizes[i];
|
result *= sizes[i];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user