Warn for type mismatch for gmx printf like functions 3/3
[alexxy/gromacs.git] / src / gromacs / listed-forces / manage-threading.cpp
index e9d770612746bcd79d90571041be671925d2cc77..af964153709b962094720e5323b7912872c083f2 100644 (file)
@@ -48,6 +48,7 @@
 #include "config.h"
 
 #include <cassert>
+#include <cinttypes>
 #include <climits>
 #include <cstdlib>
 
@@ -450,7 +451,7 @@ void setup_bonded_threading(bonded_threading_t *bt,
             if (gmx_debug_at)
             {
 #if BITMASK_SIZE <= 64 //move into bitmask when it is C++
-                std::string flags = gmx::formatString("%lx", *mask);
+                std::string flags = gmx::formatString("%" PRIx64, *mask);
 #else
                 std::string flags = gmx::formatAndJoin(*mask,
                                                        "", gmx::StringFormatter("%x"));