From c87631c2e67651bb294c7be62ef9e18bfa9030af Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sat, 10 Jan 2015 15:15:53 +0100 Subject: [PATCH] Fix other shorten-64-to-32 casting error found by MSVC (64bits) Thanks to Pascal --- lib/nghttp2_hd_huffman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_hd_huffman.c b/lib/nghttp2_hd_huffman.c index a129796f..6c4b2b64 100644 --- a/lib/nghttp2_hd_huffman.c +++ b/lib/nghttp2_hd_huffman.c @@ -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, size_t rembits, const nghttp2_huff_sym *sym) { int rv; - uint32_t nbits = sym->nbits; + size_t nbits = sym->nbits; uint32_t code = sym->code; /* We assume that sym->nbits <= 32 */