deflate_compress: use DEFLATE_END_OF_BLOCK constant

This commit is contained in:
Eric Biggers 2021-12-31 16:04:49 -06:00
parent 804c6c74f6
commit 12e72cf936

View File

@ -1738,7 +1738,7 @@ deflate_flush_block(struct libdeflate_compressor * restrict c,
static_cost += c->freqs.litlen[sym] * 9;
/* Account for the cost of encoding the end-of-block symbol. */
dynamic_cost += c->codes.lens.litlen[256];
dynamic_cost += c->codes.lens.litlen[DEFLATE_END_OF_BLOCK];
static_cost += 7;
/* Account for the cost of encoding lengths. */