Skip to content

Commit

Permalink
Update single header
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle authored and github-actions[bot] committed Mar 13, 2024
1 parent 4dac6d4 commit 8ae438b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions single_include/flux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4337,7 +4337,7 @@ struct adjacent_sequence_traits_base {
{
cursor_type out{flux::first(self.base_), };

for (auto i : flux::iota(std::size_t{1}, std::size_t{N})) {
FLUX_FOR(auto i, flux::iota(std::size_t{1}, std::size_t{N})) {
out.arr[i] = out.arr[i - 1];
if (!flux::is_last(self.base_, out.arr[i])) {
flux::inc(self.base_, out.arr[i]);
Expand All @@ -4364,7 +4364,7 @@ struct adjacent_sequence_traits_base {
cursor_type out{};
out.arr.back() = flux::last(self.base_);
auto const first = flux::first(self.base_);
for (auto i : flux::iota(std::size_t{0}, std::size_t{N}-1).reverse()) {
FLUX_FOR(auto i, flux::iota(std::size_t{0}, std::size_t{N}-1).reverse()) {
out.arr[i] = out.arr[i + 1];
if (out.arr[i] != first) {
flux::dec(self.base_, out.arr[i]);
Expand Down

0 comments on commit 8ae438b

Please sign in to comment.