summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-06-07 22:17:26 -0700
committerGravatar Nikias Bassen2020-11-24 01:23:20 +0100
commite61a5331cb219a38a1b67620045c9f894669291f (patch)
tree5c8436d253a41f4d78a2a4386d6efd15c371f7d4 /src/xplist.c
parent85ede33a2291f7aa7a7bf1cccb6f6ff6da1c046b (diff)
downloadlibplist-e61a5331cb219a38a1b67620045c9f894669291f.tar.gz
libplist-e61a5331cb219a38a1b67620045c9f894669291f.tar.bz2
Add parentheses to macros for better readability
[clang-tidy] Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c
index dc70864..3a92142 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -71,7 +71,7 @@
#define MAC_EPOCH 978307200
-#define MAX_DATA_BYTES_PER_LINE(__i) (((76 - (__i << 3)) >> 2) * 3)
+#define MAX_DATA_BYTES_PER_LINE(__i) (((76 - ((__i) << 3)) >> 2) * 3)
static const char XML_PLIST_PROLOG[] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n\