From: Mark Andrews Date: Thu, 14 Mar 2019 08:46:10 +0000 (+1100) Subject: force promotion to unsigned int X-Git-Tag: v9.15.0~89^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eba2c5b060c1e8f30658f0f834ecc7fe0dac492;p=thirdparty%2Fbind9.git force promotion to unsigned int --- diff --git a/lib/dns/byaddr.c b/lib/dns/byaddr.c index ad09529d901..e13ff4bdfed 100644 --- a/lib/dns/byaddr.c +++ b/lib/dns/byaddr.c @@ -65,10 +65,10 @@ dns_byaddr_createptrname(const isc_netaddr_t *address, unsigned int options, if (address->family == AF_INET) { (void)snprintf(textname, sizeof(textname), "%u.%u.%u.%u.in-addr.arpa.", - (bytes[3] & 0xffU), - (bytes[2] & 0xffU), - (bytes[1] & 0xffU), - (bytes[0] & 0xffU)); + ((unsigned int)bytes[3] & 0xffU), + ((unsigned int)bytes[2] & 0xffU), + ((unsigned int)bytes[1] & 0xffU), + ((unsigned int)bytes[0] & 0xffU)); } else if (address->family == AF_INET6) { size_t remaining;