Fix clang-tidy warnings for clang 7
[alexxy/gromacs.git] / src / gromacs / fileio / pdbio.cpp
index aa070856c64c43f172127cfd4e5bb1b77e6518ee..48dc48d246f23fce6caaa61b380b46a185440db9 100644 (file)
@@ -588,7 +588,7 @@ void get_pdb_atomnumber(const t_atoms *atoms, gmx_atomprop_t aps)
             anm_copy[2] = nc;
             if (gmx_atomprop_query(aps, epropElement, "???", anm_copy, &eval))
             {
-                atomnumber    = std::round(eval);
+                atomnumber    = gmx::roundToInt(eval);
                 atomNumberSet = true;
             }
             else
@@ -596,7 +596,7 @@ void get_pdb_atomnumber(const t_atoms *atoms, gmx_atomprop_t aps)
                 anm_copy[1] = nc;
                 if (gmx_atomprop_query(aps, epropElement, "???", anm_copy, &eval))
                 {
-                    atomnumber    = std::round(eval);
+                    atomnumber    = gmx::roundToInt(eval);
                     atomNumberSet = true;
                 }
             }
@@ -612,7 +612,7 @@ void get_pdb_atomnumber(const t_atoms *atoms, gmx_atomprop_t aps)
             anm_copy[1] = nc;
             if (gmx_atomprop_query(aps, epropElement, "???", anm_copy, &eval))
             {
-                atomnumber    = std::round(eval);
+                atomnumber    = gmx::roundToInt(eval);
                 atomNumberSet = true;
             }
         }