clang-tidy: Fix bugprone-macro-parentheses diagnostics
Example output:
```
/usr/bin/clang-tidy -checks=-*, bugprone-macro-parentheses -export-fixes /tmp/tmpemqa5szx/tmph_piz_ci.yaml -p=build /mnt/host/andrew/src/openbmc/libpldm/src/base.c
/mnt/host/andrew/src/openbmc/libpldm/build/../include/libpldm/base.h:137:21: error: macro argument should be enclosed in parentheses [bugprone-macro-parentheses,-warnings-as-errors]
^
()
```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Id12338430a328436d57d6560db1d3a1c53001b83
diff --git a/src/utils.c b/src/utils.c
index b78ffe5..ea25f54 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -104,7 +104,7 @@
#define AS_CHAR(digit) ((digit) + '0')
#define INSERT_CHAR(c, b, n) \
{ \
- if (n > 1) { \
+ if ((n) > 1) { \
*(b)++ = (c); \
(n)--; \
} \