Warn for type mismatch for gmx printf like functions 3/3
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index 725857f909904f935e3439aad600d02372b091df..79af995e5b526263ef8d4660dc57f0275f60a547 100644 (file)
@@ -48,6 +48,7 @@
 #include "config.h"
 
 #include <cassert>
+#include <cinttypes>
 #include <csignal>
 #include <cstdlib>
 #include <cstring>
@@ -303,7 +304,7 @@ static void override_nsteps_cmdline(const gmx::MDLogger &mdlog,
     }
     else if (nsteps_cmdline < -2)
     {
-        gmx_fatal(FARGS, "Invalid nsteps value passed on the command line: %ld",
+        gmx_fatal(FARGS, "Invalid nsteps value passed on the command line: %" PRId64,
                   nsteps_cmdline);
     }
     /* Do nothing if nsteps_cmdline == -2 */