From 1f72648b0e31e8b1df107d9b0162b0b16b4fb7ae Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 25 Sep 2015 22:19:18 +0900 Subject: [PATCH] Fix compile error with --enable-debug and --enable-werror --- lib/nghttp2_session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 8d60f6eb..a1bcab80 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -5348,7 +5348,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in, nghttp2_frame_trail_padlen(&iframe->frame, iframe->padlen); DEBUGF(fprintf(stderr, "recv: block final=%d\n", (iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) && - iframe->payloadleft - data_readlen == trail_padlen)); + iframe->payloadleft - (size_t)data_readlen == + trail_padlen)); rv = inflate_header_block( session, &iframe->frame, &hd_proclen, (uint8_t *)in,