force promotion to unsigned int

(cherry picked from commit 1eba2c5b06)
This commit is contained in:
Mark Andrews
2019-03-14 13:51:30 -07:00
committed by Evan Hunt
parent 838906b3cd
commit b30e5f11fb
+4 -4
View File
@@ -67,10 +67,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;