diff options
Diffstat (limited to 'c/enc/backward_references_hq.c')
-rwxr-xr-x | c/enc/backward_references_hq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/enc/backward_references_hq.c b/c/enc/backward_references_hq.c index 5150ae1..d766487 100755 --- a/c/enc/backward_references_hq.c +++ b/c/enc/backward_references_hq.c @@ -549,8 +549,8 @@ void BrotliZopfliCreateCommands(const size_t num_bytes, BROTLI_BOOL is_dictionary = TO_BROTLI_BOOL(distance > max_distance); size_t dist_code = ZopfliNodeDistanceCode(next); - InitCommand( - &commands[i], insert_length, copy_length, len_code, dist_code); + InitCommand(&commands[i], insert_length, + copy_length, (int)len_code - (int)copy_length, dist_code); if (!is_dictionary && dist_code > 0) { dist_cache[3] = dist_cache[2]; |