Skip to content

Commit

Permalink
Fix a bug in #3466 (#3485)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Aug 8, 2023
1 parent fdce60c commit 346a4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Array.H
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ namespace amrex
template <class T>
std::array<T const*,AMREX_SPACEDIM> GetArrOfConstPtrs (const std::array<T*,AMREX_SPACEDIM>& a) noexcept
{
return {{AMREX_D_DECL(a.data(), a.data()+1, a.data()+2)}};
return {{AMREX_D_DECL(a[0], a[1], a[2])}};
}

template <class T>
Expand Down

0 comments on commit 346a4d1

Please sign in to comment.