From b8ec1289dd1ded8d6971b156bbf47a2fc7a33b88 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 12 Aug 2022 13:41:53 +0200 Subject: [PATCH] mimalloc: avoid `%z` format This format is not supported by MSVC runtimes targeted by the MINGW toolchain. Signed-off-by: Johannes Schindelin --- compat/mimalloc/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mimalloc/options.c b/compat/mimalloc/options.c index 7497e70a7b..76aafe62b1 100644 --- a/compat/mimalloc/options.c +++ b/compat/mimalloc/options.c @@ -346,7 +346,7 @@ void _mi_fprintf( mi_output_fun* out, void* arg, const char* fmt, ... ) { static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) { if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) { char tprefix[64]; - snprintf(tprefix, sizeof(tprefix), "%sthread 0x%zx: ", prefix, _mi_thread_id()); + snprintf(tprefix, sizeof(tprefix), "%sthread 0x%llx: ", prefix, (unsigned long long)_mi_thread_id()); mi_vfprintf(out, arg, tprefix, fmt, args); } else {