diff options
author | 2020-01-10 11:26:00 +0100 | |
---|---|---|
committer | 2020-01-10 11:26:00 +0100 | |
commit | 81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e (patch) | |
tree | dcfd8ae0d9222b62b5cde0f9d10949d4eb382528 /Source/Laser/LaserParticleContainer.cpp | |
parent | 0b25b1b68f1b70e965295505d1503a3e57b6c2cc (diff) | |
download | WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.tar.gz WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.tar.zst WarpX-81bb731e828d8b8be0ac1da64bb43a4ebfd1d19e.zip |
added explicit static_cast where needed
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Laser/LaserParticleContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp index a330200cc..1d9689979 100644 --- a/Source/Laser/LaserParticleContainer.cpp +++ b/Source/Laser/LaserParticleContainer.cpp @@ -249,8 +249,8 @@ LaserParticleContainer::InitData (int lev) { auto compute_min_max = [&](Real x, Real y, Real z){ const Vector<Real>& pos_plane = InverseTransform({x, y, z}); - int i = pos_plane[0]/S_X; - int j = pos_plane[1]/S_Y; + auto i = static_cast<int>(pos_plane[0]/S_X); + auto j = static_cast<int>(pos_plane[1]/S_Y); plane_lo[0] = std::min(plane_lo[0], i); plane_lo[1] = std::min(plane_lo[1], j); plane_hi[0] = std::max(plane_hi[0], i); |