From 2b38268e2f3924bec04766a361579dff29859aa6 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 5 Oct 2017 18:20:29 +0100 Subject: [PATCH] Add printf format codes for 64-bit unsigned integers --- src/stdafx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdafx.h b/src/stdafx.h index 9187fdc8a7..7fbd61f560 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -339,10 +339,12 @@ /* MSVCRT of course has to have a different syntax for long long *sigh* */ #if defined(_MSC_VER) || defined(__MINGW32__) #define OTTD_PRINTF64 "%I64d" + #define OTTD_PRINTF64U "%I64u" #define OTTD_PRINTFHEX64 "%I64x" #define PRINTF_SIZE "%Iu" #else #define OTTD_PRINTF64 "%lld" + #define OTTD_PRINTF64U "%llu" #define OTTD_PRINTFHEX64 "%llx" #define PRINTF_SIZE "%zu" #endif