diff --git a/src/options.c b/src/options.c index dfe306de..96f00148 100644 --- a/src/options.c +++ b/src/options.c @@ -49,7 +49,7 @@ long mi_option_get(mi_option_t option) { if (desc->init == UNINIT) { mi_option_init(desc); if (option != mi_option_verbose) { - _mi_verbose_message("option '%s': %zd\n", desc->name, desc->value); + _mi_verbose_message("option '%s': %ld\n", desc->name, desc->value); } } return desc->value; diff --git a/src/stats.c b/src/stats.c index 807ef5f0..7b8de6ce 100644 --- a/src/stats.c +++ b/src/stats.c @@ -188,7 +188,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 %3zd", fmt, i); + snprintf(buf, 64, "%s %3zu", fmt, i); mi_stat_add(all, &bins[i], unit); mi_stat_print(&bins[i], buf, unit, out); }