summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann <johann.koenig@duck.com>2013-06-20 09:52:08 -0700
committerJohann <johann.koenig@duck.com>2013-06-20 09:52:08 -0700
commitd94aee6854aa65ae3a0e71726d0bcd1adfe13573 (patch)
tree89ceb68d4e6d5b819051f4ea0d8a441cbef39997
parentdb938c2988b4a7895c47ea8e87dd8a6bc552b156 (diff)
downloadlibvpx-d94aee6854aa65ae3a0e71726d0bcd1adfe13573.tar
libvpx-d94aee6854aa65ae3a0e71726d0bcd1adfe13573.tar.gz
libvpx-d94aee6854aa65ae3a0e71726d0bcd1adfe13573.tar.bz2
libvpx-d94aee6854aa65ae3a0e71726d0bcd1adfe13573.zip
Cast value to avoid size_t/int warning on win64
dboolhuff.c(50) : warning C4267: 'initializing' : conversion from 'size_t' to 'int' Change-Id: I6b85759efb2fa19f362f406623d8a7583a55c036
-rw-r--r--vp8/decoder/dboolhuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/decoder/dboolhuff.c b/vp8/decoder/dboolhuff.c
index 546fb2d21..0007d7a7a 100644
--- a/vp8/decoder/dboolhuff.c
+++ b/vp8/decoder/dboolhuff.c
@@ -47,8 +47,8 @@ void vp8dx_bool_decoder_fill(BOOL_DECODER *br)
unsigned char decrypted[sizeof(VP8_BD_VALUE) + 1];
if (br->decrypt_cb) {
- int n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left;
- br->decrypt_cb(br->decrypt_state, bufptr, decrypted, n);
+ size_t n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left;
+ br->decrypt_cb(br->decrypt_state, bufptr, decrypted, (int)n);
bufptr = decrypted;
}