From d3bb3ae64fd022f8b250b679e0052a0655709c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 4 Mar 2021 10:47:56 +0100 Subject: [PATCH] Fix comparison between signed and unsigned integer expressions Simple typecast to size_t should be enough to silence the warning on ARMv7, even though the code is in fact correct, because the readlen is checked for being < 0 in the block before the warning. --- lib/isc/netmgr/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/netmgr/http.c b/lib/isc/netmgr/http.c index b90abce05c..51adbea6f6 100644 --- a/lib/isc/netmgr/http.c +++ b/lib/isc/netmgr/http.c @@ -704,7 +704,7 @@ https_readcb(isc_nmhandle_t *handle, isc_result_t result, isc_region_t *region, return; } - if (readlen < region->length) { + if ((size_t)readlen < region->length) { INSIST(session->bufsize == 0); INSIST(region->length - readlen < MAX_DNS_MESSAGE_SIZE); memmove(session->buf, region->base, region->length - readlen);