Skip to content

Commit

Permalink
Fix placing of conversion to avoid loss of precision error.
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-blakely committed Oct 7, 2024
1 parent f3fe9f2 commit c648e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_ParmParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ ppindex (const ParmParse::Table& table, int n, const std::string& name)
if (n == ParmParse::LAST) {
return &(found->second.m_vals.back());
} else {
if(found->second.m_vals.size() < (std::size_t)(n+1)) {
if(found->second.m_vals.size() < (std::size_t)n + 1) {
return nullptr;
}
return &(found->second.m_vals[n]);
Expand Down

0 comments on commit c648e2d

Please sign in to comment.