Fix other shorten-64-to-32 casting error found by MSVC (64bits)

Thanks to Pascal
This commit is contained in:
Alexis La Goutte 2015-01-10 15:15:53 +01:00
parent 0069ca9ce8
commit c87631c2e6
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ extern const nghttp2_huff_decode huff_decode_table[][16];
static ssize_t huff_encode_sym(nghttp2_bufs *bufs, size_t *avail_ptr, static ssize_t huff_encode_sym(nghttp2_bufs *bufs, size_t *avail_ptr,
size_t rembits, const nghttp2_huff_sym *sym) { size_t rembits, const nghttp2_huff_sym *sym) {
int rv; int rv;
uint32_t nbits = sym->nbits; size_t nbits = sym->nbits;
uint32_t code = sym->code; uint32_t code = sym->code;
/* We assume that sym->nbits <= 32 */ /* We assume that sym->nbits <= 32 */