Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / fileio / matio.cpp
index c125394cf95172427e1667f9e148cad4706e34fd..a9190bc3591ab5a68b8a85afe6563a5ac2c94ff9 100644 (file)
@@ -667,7 +667,7 @@ static void write_xpm_map3(FILE *out, int n_x, int n_y, int *nlevels,
     if (*nlevels > NMAP*NMAP)
     {
         fprintf(stderr, "Warning, too many levels (%d) in matrix, using %d only\n",
-                *nlevels, (int)(NMAP*NMAP));
+                *nlevels, static_cast<int>(NMAP*NMAP));
         *nlevels = NMAP*NMAP;
     }
     else if (*nlevels < 2)
@@ -817,7 +817,7 @@ static void write_xpm_map(FILE *out, int n_x, int n_y, int *nlevels,
     if (*nlevels > NMAP*NMAP)
     {
         fprintf(stderr, "Warning, too many levels (%d) in matrix, using %d only\n",
-                *nlevels, (int)(NMAP*NMAP));
+                *nlevels, static_cast<int>(NMAP*NMAP));
         *nlevels = NMAP*NMAP;
     }
     else if (*nlevels < 2)