From 45ad059c4a36b1c83bcf930f88c1d53497698b1a Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 13 Aug 2015 14:58:28 -0700 Subject: [PATCH] [master] address VS2015 compiler warning --- lib/dns/rpz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/rpz.c b/lib/dns/rpz.c index cfc553eac0..551b19ff49 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