Skip to content

Commit

Permalink
Fix warning in layout_stride.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey authored Mar 13, 2023
1 parent 4c2b249 commit 38c7e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/experimental/__p0009_bits/layout_stride.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ struct layout_stride {
)
MDSPAN_FORCE_INLINE_FUNCTION
constexpr index_type operator()(Indices... idxs) const noexcept {
return __impl::_call_op_impl(*this, static_cast<index_type>(idxs)...);
return static_cast<index_type>(__impl::_call_op_impl(*this, static_cast<index_type>(idxs)...));
}

MDSPAN_INLINE_FUNCTION static constexpr bool is_always_unique() noexcept { return true; }
Expand Down

0 comments on commit 38c7e8d

Please sign in to comment.