]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] address VS2015 compiler warning
authorEvan Hunt <each@isc.org>
Thu, 13 Aug 2015 21:58:28 +0000 (14:58 -0700)
committerEvan Hunt <each@isc.org>
Thu, 13 Aug 2015 21:58:28 +0000 (14:58 -0700)
lib/dns/rpz.c

index cfc553eac02cc59d8ba125f9eb3db9b69dc41d52..551b19ff496eae6d24912f14fba9a8492cf9f1b4 100644 (file)
@@ -512,7 +512,7 @@ fix_qname_skip_recurse(dns_rpz_zones_t *rpzs) {
                 * more significant bits are 0. (For instance,
                 * 0x0700 => 0x00ff, 0x0007 => 0x0000)
                 */
-               mask = ~(zbits_req | -zbits_req);
+               mask = ~(zbits_req | ((~zbits_req) + 1));
 
                /*
                 * As mentioned in (2) above, the zone corresponding to