Commit 9bbffd01 authored by Mark Andrews's avatar Mark Andrews
Browse files

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 !151
parents 859af866 d637c9cc
Pipeline #898 passed with stages
in 12 minutes and 59 seconds
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment