Skip to content

Commit 6846c15

Browse files
Avoid signed/unsigned comparison
1 parent 9473ea2 commit 6846c15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/xtensor/xview.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace xt
230230
struct is_contiguous_view
231231
: std::integral_constant<bool,
232232
has_data_interface<E>::value &&
233-
!(E::static_layout == layout_type::column_major && static_dimension<typename E::shape_type>::value != sizeof...(S)) &&
233+
!(E::static_layout == layout_type::column_major && static_cast<std::size_t>(static_dimension<typename E::shape_type>::value) != sizeof...(S)) &&
234234
is_contiguous_view_impl<E::static_layout, true, false, false, xtl::mpl::vector<S...>>::value
235235
>
236236
{

0 commit comments

Comments
 (0)