3/3 of old-style casting
[alexxy/gromacs.git] / src / gromacs / utility / binaryinformation.cpp
index 27be14f4b8340e0ad7afca4243e706ee9ae73ad2..6609567cd93f867d6efd5b9bbfba49b34be0ae6f 100644 (file)
@@ -154,14 +154,14 @@ void printCopyright(gmx::TextWriter *writer)
         "of the License, or (at your option) any later version."
     };
 
-#define NCONTRIBUTORS (int)asize(Contributors)
-#define NCR (int)asize(CopyrightText)
+#define NCONTRIBUTORS static_cast<int>(asize(Contributors))
+#define NCR static_cast<int>(asize(CopyrightText))
 
 // FAH has an exception permission from LGPL to allow digital signatures in Gromacs.
 #ifdef GMX_FAHCORE
 #define NLICENSE 0
 #else
-#define NLICENSE (int)asize(LicenseText)
+#define NLICENSE static_cast<int>(asize(LicenseText))
 #endif
 
     // TODO a centering behaviour of TextWriter could be useful here