X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fcompress_common.c;h=8b85d9d55d84703ebfa12a99c4240494937bcc29;hp=e2ad298e3f33d8ec88536df26c3c9e52d48a0428;hb=f50557a7095444c554a066b3837c2999ecd1be31;hpb=ab63d9f11eae3b930f0f75fe0edb6b6df1cdb280 diff --git a/src/compress_common.c b/src/compress_common.c index e2ad298e..8b85d9d5 100644 --- a/src/compress_common.c +++ b/src/compress_common.c @@ -125,7 +125,7 @@ sort_symbols(unsigned num_syms, const u32 freqs[restrict], * Tests were done with building the codes for LZX. Results may * vary for different compression algorithms...! */ - num_counters = (DIV_ROUND_UP(num_syms, 4) + 3) & ~3; + num_counters = ALIGN(DIV_ROUND_UP(num_syms, 4), 4); unsigned counters[num_counters];