Skip to content

Commit

Permalink
Fix conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey authored Mar 13, 2023
1 parent 2a67ac9 commit 4c2b249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/experimental/__p0009_bits/layout_left.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class layout_left::mapping {
)
_MDSPAN_HOST_DEVICE
constexpr index_type operator()(Indices... idxs) const noexcept {
return __compute_offset(__rank_count<0, extents_type::rank()>(), idxs...);
return __compute_offset(__rank_count<0, extents_type::rank()>(), static_cast<index_type>(idxs)...);
}


Expand Down
2 changes: 1 addition & 1 deletion include/experimental/__p0009_bits/layout_right.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class layout_right::mapping {
)
_MDSPAN_HOST_DEVICE
constexpr index_type operator()(Indices... idxs) const noexcept {
return __compute_offset(__rank_count<0, extents_type::rank()>(), idxs...);
return __compute_offset(__rank_count<0, extents_type::rank()>(), static_cast<index_type>(idxs)...);
}

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

0 comments on commit 4c2b249

Please sign in to comment.