mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-12 13:58:35 -04:00
deflate_compress: use DEFLATE_END_OF_BLOCK constant
This commit is contained in:
parent
804c6c74f6
commit
12e72cf936
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user