From 02f8e972fe7caf6df47851320c283bc76537bd22 Mon Sep 17 00:00:00 2001 From: Slobodan Predolac Date: Thu, 16 Jul 2026 08:59:54 -0700 Subject: [PATCH] Fix col_ind to write unsigned_val, matching its column type The extents and hpa-nonfull "ind" columns are emitter_type_unsigned but were set via col_ind.size_val -- correct only by little-endian union overlap. Output is byte-identical. Pre-existing (predates the refactor). --- src/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stats.c b/src/stats.c index 4db836a0..3a8b5263 100644 --- a/src/stats.c +++ b/src/stats.c @@ -1114,7 +1114,7 @@ stats_arena_extents_print(emitter_t *emitter, unsigned i) { char size_buf[48]; stats_size_col_set(&col_size, sz_pind2sz(j), j > 0 ? sz_pind2sz(j - 1) : 0, size_buf, sizeof(size_buf)); - col_ind.size_val = j; + col_ind.unsigned_val = j; col_ndirty.size_val = e.ndirty; col_dirty.size_val = e.dirty_bytes; col_nmuzzy.size_val = e.nmuzzy; @@ -1423,7 +1423,7 @@ stats_arena_hpa_shard_slabs_print(emitter_t *emitter, unsigned i) { char size_buf[48]; stats_size_col_set(&col_size, sz_pind2sz(j), j > 0 ? sz_pind2sz(j - 1) : 0, size_buf, sizeof(size_buf)); - col_ind.size_val = j; + col_ind.unsigned_val = j; col_npageslabs_huge.size_val = s.npageslabs_huge; col_nactive_huge.size_val = s.nactive_huge; col_ndirty_huge.size_val = s.ndirty_huge;