From 258afdcffde2e1c4624516424732020ffe0ccbc3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Mar 2016 14:43:27 +1100 Subject: [PATCH] silence compiler warning (cherry picked from commit 37a931d774f4ddfd1a87097eca1588cb304145f7) --- lib/dns/master.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/master.c b/lib/dns/master.c index 490417a2a9..b5b92ab2d5 100644 --- a/lib/dns/master.c +++ b/lib/dns/master.c @@ -2112,7 +2112,7 @@ read_and_check(isc_boolean_t do_read, isc_buffer_t *buffer, isc_buffer_add(buffer, (unsigned int)len); if (*totallen < len) return (ISC_R_RANGE); - *totallen -= len; + *totallen -= (isc_uint32_t)len; } else if (isc_buffer_remaininglength(buffer) < len) return (ISC_R_RANGE); @@ -2296,7 +2296,7 @@ load_raw(dns_loadctx_t *lctx) { if (result != ISC_R_SUCCESS) goto cleanup; isc_buffer_add(&target, (unsigned int)readlen); - totallen -= readlen; + totallen -= (isc_uint32_t)readlen; /* Construct RRset headers */ dns_rdatalist_init(&rdatalist);