Skip to content

Commit

Permalink
use std::ptrdff_t instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Jan 16, 2024
1 parent 1c34415 commit 74a3bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Algorithm.H
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ namespace amrex
const std::ptrdiff_t count = last-first;
if (count >= 2){
const auto delta = (stop - start)/(count - 1);
for (int i = 0; i < count-1; ++i){
for (std::ptrdiff_t i = 0; i < count-1; ++i){
*(first++) = start + i*delta;
}
*first = stop;
Expand Down

0 comments on commit 74a3bcf

Please sign in to comment.