Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / mdlib / nbnxn_grid.cpp
index 93a93fbb64c092c11821a37dffda22417d4e7b75..a0b587523c68f039b6076913afb86a9eed93963e 100644 (file)
@@ -1505,7 +1505,7 @@ void nbnxn_put_on_grid(nbnxn_search_t                  nbs,
     {
         nbat->natoms_local = nbat->numAtoms();
     }
-    if (ddZone == static_cast<int>(nbs->grid.size()) - 1)
+    if (ddZone == gmx::ssize(nbs->grid) - 1)
     {
         /* We are done setting up all grids, we can resize the force buffers */
         nbat->resizeForceBuffers();