mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-27 15:12:54 +01:00
fix VC12-x64 warning
"conversion from 'vp8l_atype_t' to 'uint8_t', possible loss of data" Change-Id: I7607a688d16aca8fae8ce472450f8423c48f3a26
This commit is contained in:
parent
6e37cb942f
commit
b2fbc36c26
@ -297,7 +297,7 @@ uint8_t* VP8LBitWriterFinish(VP8LBitWriter* const bw) {
|
||||
// flush leftover bits
|
||||
if (VP8LBitWriterResize(bw, (bw->used_ + 7) >> 3)) {
|
||||
while (bw->used_ > 0) {
|
||||
*bw->cur_++ = bw->bits_; // & 0xff is implied here
|
||||
*bw->cur_++ = (uint8_t)bw->bits_;
|
||||
bw->bits_ >>= 8;
|
||||
bw->used_ -= 8;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user