Merge branch '168-coverity-incorrect-shifting-in-dns_rpz_mask' into 'master'
Resolve "coverity: Incorrect shifting in DNS_RPZ_MASK" Closes #168 See merge request isc-projects/bind9!151
This commit is contained in:
@@ -94,7 +94,7 @@ typedef isc_uint64_t dns_rpz_zbits_t;
|
||||
* Avoid hassles with (1<<33) or (1<<65)
|
||||
*/
|
||||
#define DNS_RPZ_ZMASK(n) ((dns_rpz_zbits_t)((((n) >= DNS_RPZ_MAX_ZONES-1) ? \
|
||||
0 : (1<<((n)+1))) -1))
|
||||
0 : (1ULL<<((n)+1))) -1))
|
||||
|
||||
/*
|
||||
* The trigger counter type.
|
||||
|
||||
Reference in New Issue
Block a user