fix warning from static analysis.

"-1 cannot be represented in type 'unsigned int'"

Change-Id: I05abcb44af68f702ead5a7f24dc14aab31a2e4d9
This commit is contained in:
Pascal Massimino 2017-01-10 22:59:47 -08:00
parent 28fe054e73
commit e3b8abbc9b

View File

@ -1576,7 +1576,7 @@ static int ComputeCacheEntropies(const uint32_t* argb,
// Update the histograms for distance/length. // Update the histograms for distance/length.
int len = PixOrCopyLength(v); int len = PixOrCopyLength(v);
int code_dist, code_len, extra_bits; int code_dist, code_len, extra_bits;
uint32_t argb_prev = *argb - 1; uint32_t argb_prev = *argb ^ 0xffffffffu;
VP8LPrefixEncodeBits(len, &code_len, &extra_bits); VP8LPrefixEncodeBits(len, &code_len, &extra_bits);
VP8LPrefixEncodeBits(PixOrCopyDistance(v), &code_dist, &extra_bits); VP8LPrefixEncodeBits(PixOrCopyDistance(v), &code_dist, &extra_bits);
for (i = 1; i <= cache_bits_max; ++i) { for (i = 1; i <= cache_bits_max; ++i) {