From 95316d81633120244d53b85303447beb1a917f74 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 23 Dec 2020 17:31:34 -0800 Subject: [clang-tidy] add parentheses to macros Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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[]) { -- cgit v1.1-32-gdbae