mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
bit_writer_utils,Flush: quiet implicit conversion warnings
no change in object code from clang-7 -fsanitize=implicit-integer-truncation implicit conversion from type 'int32_t' (aka 'int') of value 287 (32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 31 (8-bit, unsigned) Change-Id: I692368bcc2f41412697b8ae51e53078831072891
This commit is contained in:
parent
1326988d10
commit
2e672351aa
@ -70,7 +70,7 @@ static void Flush(VP8BitWriter* const bw) {
|
||||
const int value = (bits & 0x100) ? 0x00 : 0xff;
|
||||
for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value;
|
||||
}
|
||||
bw->buf_[pos++] = bits;
|
||||
bw->buf_[pos++] = bits & 0xff;
|
||||
bw->pos_ = pos;
|
||||
} else {
|
||||
bw->run_++; // delay writing of bytes 0xff, pending eventual carry.
|
||||
|
Loading…
Reference in New Issue
Block a user