2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

some CPP macros were not fully parenthesized

This commit is contained in:
Andreas Gustafsson
2000-09-12 23:27:44 +00:00
parent 736be84da0
commit a9d3c26ed0

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: bitstring.c,v 1.8 2000/09/12 19:26:40 halley Exp $ */
/* $Id: bitstring.c,v 1.9 2000/09/12 23:27:44 gson Exp $ */
#include <config.h>
@@ -26,8 +26,8 @@
#define DIV8(x) ((x) >> 3)
#define MOD8(x) ((x) & 0x00000007U)
#define OCTETS(n) ((n + 7) >> 3)
#define PADDED(n) (((n + 7) >> 3) << 3)
#define OCTETS(n) (((n) + 7) >> 3)
#define PADDED(n) ((((n) + 7) >> 3) << 3)
#define BITSET(bs, n) (((bs)->data[DIV8(n)] & \
(1 << (7 - MOD8(n)))) != 0)
#define SETBIT(bs, n) (bs)->data[DIV8(n)] |= (1 << (7 - MOD8(n)))