Skip to content

Commit

Permalink
Fix issue with assigning to 1D strided views with negative strides
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoemi09 committed Jul 18, 2024
1 parent 5bcda71 commit 58b2599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/nda/_impl_basic_array_view_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void fill_with_scalar(Scalar const &scalar) noexcept {
} else {
const long stri = indexmap().min_stride();
const long Lstri = L * stri;
for (long i = 0; i < Lstri; i += stri) p[i] = scalar;
for (long i = 0; i != Lstri; i += stri) p[i] = scalar;
}
} else {
// no compile-time memory layout guarantees
Expand Down

0 comments on commit 58b2599

Please sign in to comment.