diff options
author | shenglei10 <41469319+shenglei10@users.noreply.github.com> | 2020-02-14 17:40:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 10:40:02 +0100 |
commit | 666c3280cc11dc433c303d79a83d4ffbdd12cc8d (patch) | |
tree | 53a9a30e8fb906d10cedbeed86a50884cc34603b | |
parent | 4b5771bee7995d3d606221caa455c044d80434df (diff) | |
download | brotli-666c3280cc11dc433c303d79a83d4ffbdd12cc8d.zip brotli-666c3280cc11dc433c303d79a83d4ffbdd12cc8d.tar.gz brotli-666c3280cc11dc433c303d79a83d4ffbdd12cc8d.tar.bz2 |
Make types of variable match (#796)
-rw-r--r-- | c/dec/decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/dec/decode.c b/c/dec/decode.c index 9c10f50..114c505 100644 --- a/c/dec/decode.c +++ b/c/dec/decode.c @@ -275,7 +275,7 @@ static BrotliDecoderErrorCode BROTLI_NOINLINE DecodeMetaBlockLength( s->loop_counter = i; return BROTLI_DECODER_NEEDS_MORE_INPUT; } - if (i + 1 == s->size_nibbles && s->size_nibbles > 4 && bits == 0) { + if (i + 1 == (int)s->size_nibbles && s->size_nibbles > 4 && bits == 0) { return BROTLI_FAILURE(BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE); } s->meta_block_remaining_len |= (int)(bits << (i * 4)); @@ -324,7 +324,7 @@ static BrotliDecoderErrorCode BROTLI_NOINLINE DecodeMetaBlockLength( s->loop_counter = i; return BROTLI_DECODER_NEEDS_MORE_INPUT; } - if (i + 1 == s->size_nibbles && s->size_nibbles > 1 && bits == 0) { + if (i + 1 == (int)s->size_nibbles && s->size_nibbles > 1 && bits == 0) { return BROTLI_FAILURE( BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE); } |