Update clang-tidy to clang version 8
[alexxy/gromacs.git] / src / gromacs / mdlib / updategroupscog.cpp
index f5c972a862151b6910f4661ae7e2c2b82b6f8983..f17b9a9ebd443e8511392c69eee6bd8f23092679 100644 (file)
@@ -94,7 +94,7 @@ void UpdateGroupsCog::addCogs(gmx::ArrayRef<const int>        globalAtomIndices,
     cogIndices_.reserve(globalAtomIndices.size());
 
     int moleculeBlock = 0;
-    for (int localAtom = localAtomBegin; localAtom < globalAtomIndices.ssize(); localAtom++)
+    for (gmx::index localAtom = localAtomBegin; localAtom < globalAtomIndices.ssize(); localAtom++)
     {
         const int   globalAtom = globalAtomIndices[localAtom];
         int         moleculeIndex;