From: Jim Bankoski Date: Fri, 14 Feb 2014 15:10:23 +0000 (-0800) Subject: vp9_write_bit_buffer.h add consts to suppress warnings in vs X-Git-Tag: v1.4.0~2364^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0abb06571bb0407c54b8de2aedd6f59a74cc7b84;p=libvpx vp9_write_bit_buffer.h add consts to suppress warnings in vs Change-Id: Iacda473090ae84c798f1d93df8284f34bdf646a5 --- diff --git a/vp9/encoder/vp9_write_bit_buffer.h b/vp9/encoder/vp9_write_bit_buffer.h index 5958b4806..1795e05e4 100644 --- a/vp9/encoder/vp9_write_bit_buffer.h +++ b/vp9/encoder/vp9_write_bit_buffer.h @@ -29,7 +29,7 @@ static size_t vp9_rb_bytes_written(struct vp9_write_bit_buffer *wb) { } static void vp9_wb_write_bit(struct vp9_write_bit_buffer *wb, int bit) { - const int off = wb->bit_offset; + const int off = (int)wb->bit_offset; const int p = off / CHAR_BIT; const int q = CHAR_BIT - 1 - off % CHAR_BIT; if (q == CHAR_BIT -1) {