summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-23 17:31:34 -0800
committerGravatar Nikias Bassen2022-04-22 13:22:38 +0200
commit95316d81633120244d53b85303447beb1a917f74 (patch)
treed836d7b096a86bc64b1e64c09f6c4433b0df67cb /tools
parent78040882a30666f29985bc6589be03cbc7d7cfbe (diff)
downloadlibimobiledevice-95316d81633120244d53b85303447beb1a917f74.tar.gz
libimobiledevice-95316d81633120244d53b85303447beb1a917f74.tar.bz2
[clang-tidy] add parentheses to macros
Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 2f8f1fa..2170f98 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1458,7 +1458,7 @@ static void print_usage(int argc, char **argv)
printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
}
-#define DEVICE_VERSION(maj, min, patch) (((maj & 0xFF) << 16) | ((min & 0xFF) << 8) | (patch & 0xFF))
+#define DEVICE_VERSION(maj, min, patch) ((((maj) & 0xFF) << 16) | (((min) & 0xFF) << 8) | ((patch) & 0xFF))
int main(int argc, char *argv[])
{