~mcf/dnssec-rr

1c9796ac0b00d786a86dfcb4bd3f5e310e75b324 — Michael Forney 2 months ago 6d7cc65 master 0.2
Properly parenthesize macro argument and explicitly mask lower 8 bits
1 files changed, 2 insertions(+), 2 deletions(-)

M dnssec.h
M dnssec.h => dnssec.h +2 -2
@@ 1,7 1,7 @@
#include <bearssl.h>

#define BE32(x) (unsigned char[]){x >> 24, x >> 16, x >> 8, x}
#define BE16(x) (unsigned char[]){x >> 8, x}
#define BE32(x) (unsigned char[]){(x) >> 24 & 0xff, (x) >> 16 & 0xff, (x) >> 8 & 0xff, (x) & 0xff}
#define BE16(x) (unsigned char[]){(x) >> 8 & 0xff, (x) & 0xff}

enum {
	TYPE_A      = 1,