From 5c43de8ef8aae55c656d474bb04e9f399e671bd0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 17 Oct 2020 14:22:57 +0100 Subject: [PATCH] Add padded printf 64 hex defines --- src/stdafx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdafx.h b/src/stdafx.h index 4c9ca0d92c..b9d46e0d1e 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -301,12 +301,14 @@ # define OTTD_PRINTF64 "%I64d" # define OTTD_PRINTF64U "%I64u" # define OTTD_PRINTFHEX64 "%I64x" +# define OTTD_PRINTFHEX64PAD "%016I64x" # define PRINTF_SIZE "%Iu" # define PRINTF_SIZEX "%IX" #else # define OTTD_PRINTF64 "%lld" # define OTTD_PRINTF64U "%llu" # define OTTD_PRINTFHEX64 "%llx" +# define OTTD_PRINTFHEX64PAD "%016llx" # define PRINTF_SIZE "%zu" # define PRINTF_SIZEX "%zX" #endif