Daniele Bartolini пре 6 година
родитељ
комит
f71441b2d2
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/resource/data_compiler.cpp

+ 2 - 1
src/resource/data_compiler.cpp

@@ -39,6 +39,7 @@
 #include "resource/types.h"
 #include "resource/unit_resource.h"
 #include <algorithm>
+#include <inttypes.h>
 
 LOG_SYSTEM(DATA_COMPILER, "data_compiler")
 
@@ -211,7 +212,7 @@ static void read_data_mtimes(HashMap<StringId64, u64>& mtimes, FilesystemDisk& d
 		sjson::parse_string(cur->second, mtime_json);
 
 		u64 mtime;
-		sscanf(mtime_json.c_str(), "%lu", &mtime);
+		sscanf(mtime_json.c_str(), "%" SCNu64, &mtime);
 		hash_map::set(mtimes, dst_name, mtime);
 	}
 }