Skip to content

Commit

Permalink
fix implicit narrowing
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jun 28, 2023
1 parent 9d453b5 commit 9b07338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_PODVector.H
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ namespace amrex
while (new_capacity < (capacity() + a_num_to_be_added))
{
new_capacity = static_cast<size_type>(
VectorGrowthStrategy::GetGrowthFactor() * (new_capacity + 1));
VectorGrowthStrategy::GetGrowthFactor() * static_cast<Real>(new_capacity + 1));
}

return new_capacity;
Expand Down

0 comments on commit 9b07338

Please sign in to comment.