Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / topio.cpp
index 1ff2a1ac5c62f85efa38f0f5eaeaab5e427ee676..4354a3f05e1c9bdf7659020e95df30aa94422db6 100644 (file)
@@ -569,7 +569,7 @@ static char **read_topol(const char *infile, const char *outfile,
             trim (pline);
 
             /* if there is something left... */
-            if ((int)strlen(pline) > 0)
+            if (static_cast<int>(strlen(pline)) > 0)
             {
                 if (pline[0] == OPENDIR)
                 {
@@ -891,7 +891,7 @@ static char **read_topol(const char *infile, const char *outfile,
                             break;
                         }
                         default:
-                            fprintf (stderr, "case: %d\n", (int)d);
+                            fprintf (stderr, "case: %d\n", static_cast<int>(d));
                             gmx_incons("unknown directive");
                     }
                 }