macro-hygiene: wrap arguments in parenthesis - libgrapheme - unicode string library
(HTM) git clone git://git.suckless.org/libgrapheme
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b0806472bfe24708f938cc053ce29af0b8cdb57d
(DIR) parent 14bd81aba1dc2d25dd1a44c74425b5916ac401ef
(HTM) Author: NRK <nrk@disroot.org>
Date: Wed, 29 Jun 2022 09:07:49 +0600
macro-hygiene: wrap arguments in parenthesis
reported by clang-tidy.
Diffstat:
M src/utf8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/utf8.c b/src/utf8.c
@@ -4,7 +4,7 @@
#include "../grapheme.h"
#include "util.h"
-#define BETWEEN(c, l, u) (c >= l && c <= u)
+#define BETWEEN(c, l, u) ((c) >= (l) && (c) <= (u))
/* lookup-table for the types of sequence first bytes */
static const struct {