Revert size to be unsigned for ArrayRef
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / readir.cpp
index 1960170bb067e973c9c7a32167f5b1b48191eb55..2804ab3a1ab74f4762e276a3ddbb0afd2a93daa4 100644 (file)
@@ -2646,7 +2646,7 @@ static bool do_numbering(int natoms, gmx_groups_t *groups,
     }
 
     snew(grps->nm_ind, groupsFromMdpFile.size()+1); /* +1 for possible rest group */
-    for (int i = 0; i != groupsFromMdpFile.size(); ++i)
+    for (int i = 0; i != groupsFromMdpFile.ssize(); ++i)
     {
         /* Lookup the group name in the block structure */
         gid = search_string(groupsFromMdpFile[i].c_str(), block->nr, gnames);