Skip to content

Commit 40fd398

Browse files
committed
merge from dev
2 parents 1e7f7a2 + b91f1f0 commit 40fd398

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/stats.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ static void mi_stat_counter_print_size(const mi_stat_counter_t* stat, const char
246246
_mi_fprintf(out, arg, "\n");
247247
}
248248

249-
static void mi_stat_average_print(size_t count, size_t total, const char* msg, mi_output_fun* out, void* arg) {
249+
static void mi_stat_average_print(int64_t count, int64_t total, const char* msg, mi_output_fun* out, void* arg) {
250250
const int64_t avg_tens = (count == 0 ? 0 : (total*10 / count));
251-
const long avg_whole = (long)(avg_tens/10);
252-
const long avg_frac1 = (long)(avg_tens%10);
253-
_mi_fprintf(out, arg, " %-10s: %5ld.%ld avg\n", msg, avg_whole, avg_frac1);
251+
const int64_t avg_whole = avg_tens/10;
252+
const int64_t avg_frac1 = avg_tens%10;
253+
_mi_fprintf(out, arg, " %10s: %5lld.%lld avg\n", msg, avg_whole, avg_frac1);
254254
}
255255

256256

0 commit comments

Comments
 (0)