Skip to content

Commit 666c328

Browse files
authored
Make types of variable match (google#796)
1 parent 4b5771b commit 666c328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c/dec/decode.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static BrotliDecoderErrorCode BROTLI_NOINLINE DecodeMetaBlockLength(
275275
s->loop_counter = i;
276276
return BROTLI_DECODER_NEEDS_MORE_INPUT;
277277
}
278-
if (i + 1 == s->size_nibbles && s->size_nibbles > 4 && bits == 0) {
278+
if (i + 1 == (int)s->size_nibbles && s->size_nibbles > 4 && bits == 0) {
279279
return BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE);
280280
}
281281
s->meta_block_remaining_len |= (int)(bits << (i * 4));
@@ -324,7 +324,7 @@ static BrotliDecoderErrorCode BROTLI_NOINLINE DecodeMetaBlockLength(
324324
s->loop_counter = i;
325325
return BROTLI_DECODER_NEEDS_MORE_INPUT;
326326
}
327-
if (i + 1 == s->size_nibbles && s->size_nibbles > 1 && bits == 0) {
327+
if (i + 1 == (int)s->size_nibbles && s->size_nibbles > 1 && bits == 0) {
328328
return BROTLI_FAILURE(
329329
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE);
330330
}

0 commit comments

Comments
 (0)