3/3 of old-style casting
[alexxy/gromacs.git] / src / gromacs / utility / pleasecite.cpp
index 2aad0cf457c4edc062b56d9db9d8a1755ba5ede8..f3664822f9a00f698efccbb13369d7d3955c5b7f 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -382,7 +382,7 @@ void please_cite(FILE *fp, const char *key)
           "J. Chem. Phys.",
           141, 2014, "044110" },
     };
-#define NSTR (int)asize(citedb)
+#define NSTR static_cast<int>(asize(citedb))
 
     int   index;
     char *author;
@@ -394,7 +394,7 @@ void please_cite(FILE *fp, const char *key)
         return;
     }
 
-    for (index = 0; (index < NSTR) && (strcmp(citedb[index].key, key) != 0); index++)
+    for (index = 0; index < NSTR && (strcmp(citedb[index].key, key) != 0); index++)
     {
         ;
     }