]> granicus.if.org Git - libvpx/commitdiff
vp9_write_bit_buffer.h add consts to suppress warnings in vs
authorJim Bankoski <jimbankoski@google.com>
Fri, 14 Feb 2014 15:10:23 +0000 (07:10 -0800)
committerJim Bankoski <jimbankoski@google.com>
Fri, 14 Feb 2014 15:30:33 +0000 (07:30 -0800)
Change-Id: Iacda473090ae84c798f1d93df8284f34bdf646a5

vp9/encoder/vp9_write_bit_buffer.h

index 5958b48067c59b91c430da0200708b3d81eeebb9..1795e05e4876f3d27c21351890a73d66258ceaa3 100644 (file)
@@ -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) {