shithub: libvpx

Download patch

ref: 811be0df3a4a4d580756c20677cbe8294a1930b1
parent: dc9d36c0a6c749616d5543aa208864d7b0181fea
author: Alex Converse <[email protected]>
date: Mon Oct 26 19:13:03 EDT 2015

Fix VS build.

Add a cast on a double to unsigned assignment.

Change-Id: I4abce7cfa13e145ed0c71469844ac9b274aa1411

--- a/vp10/encoder/palette.c
+++ b/vp10/encoder/palette.c
@@ -49,7 +49,7 @@
                            const uint8_t *indices, int n, int k, int dim) {
   int i, j, index;
   int count[PALETTE_MAX_SIZE];
-  unsigned int rand_state = data[0];
+  unsigned int rand_state = (unsigned int)data[0];
 
   assert(n <= 32768);