fix VC12-x64 warning

"conversion from 'vp8l_atype_t' to 'uint8_t', possible loss of data"

Change-Id: I7607a688d16aca8fae8ce472450f8423c48f3a26
This commit is contained in:
Pascal Massimino 2014-02-12 05:17:35 +00:00 committed by James Zern
parent 6e37cb942f
commit b2fbc36c26

View File

@ -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;
}