From: Evan Hunt Date: Thu, 13 Aug 2015 21:58:28 +0000 (-0700) Subject: [master] address VS2015 compiler warning X-Git-Tag: v9.11.0a1~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45ad059c4a36b1c83bcf930f88c1d53497698b1a;p=thirdparty%2Fbind9.git [master] address VS2015 compiler warning --- diff --git a/lib/dns/rpz.c b/lib/dns/rpz.c index cfc553eac02..551b19ff496 100644 --- a/lib/dns/rpz.c +++ b/lib/dns/rpz.c @@ -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