deflate_compress: use MAX_PRE_CODEWORD_LEN constant

deflate_write_huffman_header() should use MAX_PRE_CODEWORD_LEN, not
DEFLATE_MAX_PRE_CODEWORD_LEN (though these are currently the same).
This commit is contained in:
Eric Biggers 2021-12-31 16:04:49 -06:00
parent be5aefe42f
commit 3f706a69bd

View File

@ -1453,7 +1453,7 @@ deflate_write_huffman_header(struct libdeflate_compressor *c,
else
deflate_add_bits(os, precode_item >> 5, 7);
}
STATIC_ASSERT(CAN_BUFFER(DEFLATE_MAX_PRE_CODEWORD_LEN + 7));
STATIC_ASSERT(CAN_BUFFER(MAX_PRE_CODEWORD_LEN + 7));
deflate_flush_bits(os);
}
}