X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdecompress_common.c;h=77fdd251903732eb4c03b2aba20debbb0b06332d;hb=34193844b60cf16bb0a04e344ddf47a0614a7643;hp=9743c7d0da6e9748d3e525839ce48fc3702d27d9;hpb=67c5f2c5954d07c25f57b6d9aedb73fb3720ec0b;p=wimlib diff --git a/src/decompress_common.c b/src/decompress_common.c index 9743c7d0..77fdd251 100644 --- a/src/decompress_common.c +++ b/src/decompress_common.c @@ -29,7 +29,7 @@ #include "wimlib/decompress_common.h" #include "wimlib/error.h" -#include "wimlib/util.h" +#include "wimlib/util.h" /* for BUILD_BUG_ON() */ #include @@ -350,7 +350,7 @@ make_huffman_decode_table(u16 decode_table[const restrict], } /* If we've filled in the entire table, we are done. Otherwise, - * there are codes longer than table_bits for which we must + * there are codewords longer than table_bits for which we must * generate binary trees. */ decode_table_pos = (u16*)decode_table_ptr - decode_table; @@ -359,11 +359,11 @@ make_huffman_decode_table(u16 decode_table[const restrict], unsigned next_free_tree_slot; unsigned cur_codeword; - /* First, zero out the rest of the entries. This is - * necessary so that the entries appear as "unallocated" - * in the next part. Each of these entries will - * eventually be filled the representation of the root - * node of a binary tree. */ + /* First, zero out the remaining entries. This is + * necessary so that these entries appear as + * "unallocated" in the next part. Each of these entries + * will eventually be filled with the representation of + * the root node of a binary tree. */ j = decode_table_pos; do { decode_table[j] = 0; @@ -371,7 +371,8 @@ make_huffman_decode_table(u16 decode_table[const restrict], /* We allocate child nodes starting at the end of the * direct lookup table. Note that there should be - * 2*num_syms extra entries for this purpose. */ + * 2*num_syms extra entries for this purpose, although + * fewer than this may actually be needed. */ next_free_tree_slot = table_num_entries; /* Iterate through each codeword with length greater than