From c4874fdf447cb1bb2122bf2d5060b4d4cb27ff09 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 26 Apr 2021 21:54:38 +0200 Subject: [PATCH] hosted/dap: Add parentheses around bitwise operator. --- src/platforms/hosted/dap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/hosted/dap.c b/src/platforms/hosted/dap.c index 7a69aea2..9d93ab7c 100644 --- a/src/platforms/hosted/dap.c +++ b/src/platforms/hosted/dap.c @@ -819,5 +819,5 @@ bool dap_swdptap_seq_in_parity(uint32_t *ret, int ticks) unsigned int parity = __builtin_parity(res) & 1; parity ^= (buf[5] % 1); DEBUG_WARN("Res %08" PRIx32" %d\n", *ret, parity & 1); - return (!parity & 1); + return (!(parity & 1)); }