From 7941b467b2c84dd37f6f27cd930f3b51b3305b54 Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Mon, 1 Jun 2026 05:24:58 -0700 Subject: [PATCH] Fix Bazel build PiperOrigin-RevId: 924648497 --- c/dec/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/dec/decode.c b/c/dec/decode.c index 446365a..8d57c2b 100644 --- a/c/dec/decode.c +++ b/c/dec/decode.c @@ -1597,7 +1597,7 @@ static BROTLI_BOOL InitializeCompoundDictionaryCopy(BrotliDecoderState* s, /* Update the recent distances cache. */ s->dist_rb[s->dist_rb_idx & 3] = s->distance_code; ++s->dist_rb_idx; - s->meta_block_remaining_len -= length; + s->meta_block_remaining_len -= (int)length; addon->br_index = (uint16_t)index; addon->br_offset = address - addon->chunk_offsets[index]; addon->br_length = length; @@ -1624,7 +1624,7 @@ static int CopyFromCompoundDictionary(BrotliDecoderState* s, int pos) { if (length > rem_chunk_length) length = rem_chunk_length; if (length > (uint32_t)space) length = (uint32_t)space; memcpy(copy_dst, copy_src, (size_t)length); - pos += length; + pos += (int)length; addon->br_offset += length; addon->br_copied += length; if (length == rem_chunk_length) {