]> wimlib.net Git - wimlib/blobdiff - src/lzms-compress.c
Optimize Huffman code generation
[wimlib] / src / lzms-compress.c
index 64a674214b0766b17a6758650ed6558f38c4e2f6..3b0caab4a963e75cd60161d2fb5ddf5a05b8ffe2 100644 (file)
@@ -163,7 +163,7 @@ struct lzms_huffman_encoder {
        u8 lens[LZMS_MAX_NUM_SYMS];
 
        /* The codeword of each symbol in the Huffman code.  */
-       u16 codewords[LZMS_MAX_NUM_SYMS];
+       u32 codewords[LZMS_MAX_NUM_SYMS];
 };
 
 /* State of the LZMS compressor.  */