Replace rounding using int(x+0.5) with roundToInt
[alexxy/gromacs.git] / src / gromacs / statistics / statistics.cpp
index 709759543018f649822bd369d4b696da29d0fbc1..ee4cecb124a2894a54f597dbf9eb981b4d9bf571 100644 (file)
@@ -48,7 +48,7 @@
 
 static int gmx_dnint(double x)
 {
-    return static_cast<int>(x+0.5);
+    return gmx::roundToInt(x);
 }
 
 typedef struct gmx_stats {