mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
fix warning from static analysis.
"-1 cannot be represented in type 'unsigned int'" Change-Id: I05abcb44af68f702ead5a7f24dc14aab31a2e4d9
This commit is contained in:
parent
28fe054e73
commit
e3b8abbc9b
@ -1576,7 +1576,7 @@ static int ComputeCacheEntropies(const uint32_t* argb,
|
||||
// Update the histograms for distance/length.
|
||||
int len = PixOrCopyLength(v);
|
||||
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(PixOrCopyDistance(v), &code_dist, &extra_bits);
|
||||
for (i = 1; i <= cache_bits_max; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user