Skip to content

Commit d836da3

Browse files
author
Dmytro Makarenko
committed
fix m_strides_computed
1 parent ed3cab1 commit d836da3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/xtensor/xview.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@ namespace xt
12321232
if (!m_strides_computed)
12331233
{
12341234
compute_strides(std::integral_constant<bool, has_trivial_strides>{});
1235+
m_strides_computed = true;
12351236
}
12361237
return m_data_offset;
12371238
}

0 commit comments

Comments
 (0)