From b2fbc36c269ff5f194406eecc4d23483f44d3573 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 12 Feb 2014 05:17:35 +0000 Subject: [PATCH] fix VC12-x64 warning "conversion from 'vp8l_atype_t' to 'uint8_t', possible loss of data" Change-Id: I7607a688d16aca8fae8ce472450f8423c48f3a26 --- src/utils/bit_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/bit_writer.c b/src/utils/bit_writer.c index e7d3c777..3095882b 100644 --- a/src/utils/bit_writer.c +++ b/src/utils/bit_writer.c @@ -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; }