File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ namespace xt
401401 {
402402 constexpr size_t n_indices_full = n_indices_full_v<FirstIndice, OtherIndices...>;
403403
404- constexpr auto underlying_n_dimensions = as_unsigned (xt::static_dimension<
404+ constexpr auto underlying_n_dimensions = static_cast <std:: size_t > (xt::static_dimension<
405405 typename std::decay_t <UnderlyingContainer>::shape_type>::value);
406406
407407 // If there is too many indices, we need to drop the first ones.
@@ -517,7 +517,7 @@ namespace xt
517517 else
518518 {
519519 assert (i < slice.size ());
520- return as_unsigned (slice (as_signed (i)));
520+ return as_unsigned (slice (static_cast < typename current_slice::size_type> (i)));
521521 }
522522 }
523523 else
Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ namespace xt
835835 if constexpr (is_xslice<S>::value)
836836 {
837837 using ST = typename S::size_type;
838- return as_unsigned (slice (as_signed (i)));
838+ return as_unsigned (slice (static_cast <ST> (i)));
839839 }
840840 else
841841 {
You can’t perform that action at this time.
0 commit comments