Skip to content

Commit

Permalink
Base: fix compilation error with Span_itemIndex() Linux/macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Jul 26, 2023
1 parent b71020d commit d0be856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ constexpr int Span_itemIndex(Span<T> span, typename Span<T>::const_reference ite
auto index = &item - &span.front();
assert(index >= 0);
assert(index <= INT_MAX);
assert(&span[static_cast<Span<T>::size_type>(index)] == &item);
assert(&span[static_cast<typename Span<T>::size_type>(index)] == &item);
return static_cast<int>(index);
}

Expand Down

0 comments on commit d0be856

Please sign in to comment.