]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
force promotion to unsigned int
authorMark Andrews <marka@isc.org>
Thu, 14 Mar 2019 08:46:10 +0000 (19:46 +1100)
committerEvan Hunt <each@isc.org>
Thu, 14 Mar 2019 20:34:59 +0000 (13:34 -0700)
lib/dns/byaddr.c

index ad09529d90104fda6910268cfc7081b6414f30a0..e13ff4bdfeda4f7792454b320e3a7b9a3d010e5a 100644 (file)
@@ -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;