Fixed compilation warning

This commit is contained in:
Benoit Steiner 2016-06-01 21:14:46 -07:00
parent c3cada38e2
commit 8f6fedc55f

View File

@ -710,7 +710,7 @@ struct TensorEvaluator<const TensorStridingSlicingOp<StartIndices, StopIndices,
{
// Handle degenerate intervals by gracefully clamping and allowing m_dimensions to be zero
DSizes<Index,NumDims> startIndicesClamped, stopIndicesClamped;
for (int i = 0; i < internal::array_size<Dimensions>::value; ++i) {
for (size_t i = 0; i < internal::array_size<Dimensions>::value; ++i) {
eigen_assert(m_strides[i] != 0 && "0 stride is invalid");
if(m_strides[i]>0){
startIndicesClamped[i] = clamp(op.startIndices()[i], 0, m_impl.dimensions()[i]);