From 3f8ff12e66b7c31a3fe97e551f506719429ba01b Mon Sep 17 00:00:00 2001 From: daan Date: Sat, 15 Aug 2020 11:42:28 -0700 Subject: [PATCH] avoid use of %z format specifier --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index 6f12454e..321c9097 100644 --- a/src/stats.c +++ b/src/stats.c @@ -223,7 +223,7 @@ static void mi_stats_print_bins(mi_stat_count_t* all, const mi_stat_count_t* bin if (bins[i].allocated > 0) { found = true; int64_t unit = _mi_bin_size((uint8_t)i); - snprintf(buf, 64, "%s %3zu", fmt, i); + snprintf(buf, 64, "%s %3lu", fmt, (long)i); mi_stat_add(all, &bins[i], unit); mi_stat_print(&bins[i], buf, unit, out, arg); }