Skip to content

Commit

Permalink
kokkos#6805: update mdspan tpl to avoid shadowed variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Feb 22, 2024
1 parent 3b54534 commit 49162ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ struct padded_extent {

MDSPAN_INLINE_FUNCTION static constexpr static_array_type
init_padding(const _Extents &exts,
index_type padding_value) {
index_type pv) {
if constexpr (_Extents::rank() > 1) {
return {find_next_multiple(padding_value,
return {find_next_multiple(pv,
exts.extent(_ExtentToPadIdx))};
} else {
return {};
Expand Down

0 comments on commit 49162ef

Please sign in to comment.