Skip to content

Commit

Permalink
Fix Warning in #3338 (#3347)
Browse files Browse the repository at this point in the history
Explicitly convert amrex::Long to int.
  • Loading branch information
WeiqunZhang authored Jun 6, 2023
1 parent 996ff7a commit 5449a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleTile.H
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ SoAParticle<NArrayReal, NArrayInt>::NextID ()
if (next > IntParticleIds::LastParticleID)
amrex::Abort("SoAParticle<NArrayReal, NArrayInt>::NextID() -- too many particles");

return next;
return int(next);
}

template <int NArrayReal, int NArrayInt>
Expand Down

0 comments on commit 5449a69

Please sign in to comment.