From 15eb1c5f5edfe161bf083745bbf5f261aa8073d2 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Mon, 28 Nov 2022 06:26:14 +0100 Subject: [PATCH] support the msvc specific I64 specifier in our sprintf --- src/common/xsprintf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/common/xsprintf.c b/src/common/xsprintf.c index a3fbc676b..556e4f359 100644 --- a/src/common/xsprintf.c +++ b/src/common/xsprintf.c @@ -486,6 +486,18 @@ int xvsnprintf (char* Buf, size_t Size, const char* Format, va_list ap) } break; + /* support the MSVC specific I64 for long long */ + case 'I': + F = *Format++; + if (F == '6') { + F = *Format++; + if (F == '4') { + F = *Format++; + P.LengthMod = lmLongLong; + } + } + break; + case 'l': F = *Format++; if (F == 'l') {