From 5b7c5f52163a23b06bb0d329b2544e6c5fb1d521 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 13 Dec 2016 10:48:21 +0100 Subject: [PATCH] fix compiler warning in hpack_parser.c --- src/core/ext/transport/chttp2/transport/hpack_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.c b/src/core/ext/transport/chttp2/transport/hpack_parser.c index 3c7d5e83104..5dabe272d39 100644 --- a/src/core/ext/transport/chttp2/transport/hpack_parser.c +++ b/src/core/ext/transport/chttp2/transport/hpack_parser.c @@ -1511,7 +1511,7 @@ static grpc_error *begin_parse_string(grpc_exec_ctx *exec_ctx, const uint8_t *cur, const uint8_t *end, uint8_t binary, grpc_chttp2_hpack_parser_string *str) { - if (!p->huff && binary == NOT_BINARY && (end - cur) >= p->strlen && + if (!p->huff && binary == NOT_BINARY && (end - cur) >= (intptr_t)p->strlen && p->current_slice_refcount != NULL) { str->copied = false; str->data.referenced.refcount = p->current_slice_refcount;