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
This commit is contained in:
Johann 2013-06-20 09:52:08 -07:00
parent db938c2988
commit d94aee6854

View File

@ -47,8 +47,8 @@ void vp8dx_bool_decoder_fill(BOOL_DECODER *br)
unsigned char decrypted[sizeof(VP8_BD_VALUE) + 1]; unsigned char decrypted[sizeof(VP8_BD_VALUE) + 1];
if (br->decrypt_cb) { if (br->decrypt_cb) {
int n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left; size_t n = bytes_left > sizeof(decrypted) ? sizeof(decrypted) : bytes_left;
br->decrypt_cb(br->decrypt_state, bufptr, decrypted, n); br->decrypt_cb(br->decrypt_state, bufptr, decrypted, (int)n);
bufptr = decrypted; bufptr = decrypted;
} }