Skip to content

Commit d6e6ea2

Browse files
committed
mimalloc: avoid %z format
This format is not supported by MSVC runtimes targeted by the MINGW toolchain. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 33572e8 commit d6e6ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mimalloc/options.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void _mi_fprintf( mi_output_fun* out, void* arg, const char* fmt, ... ) {
346346
static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) {
347347
if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) {
348348
char tprefix[64];
349-
snprintf(tprefix, sizeof(tprefix), "%sthread 0x%zx: ", prefix, _mi_thread_id());
349+
snprintf(tprefix, sizeof(tprefix), "%sthread 0x%llx: ", prefix, (unsigned long long)_mi_thread_id());
350350
mi_vfprintf(out, arg, tprefix, fmt, args);
351351
}
352352
else {

0 commit comments

Comments
 (0)