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 --- src/mobilebackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mobilebackup.c') diff --git a/src/mobilebackup.c b/src/mobilebackup.c index cde96b5..aa29277 100644 --- a/src/mobilebackup.c +++ b/src/mobilebackup.c @@ -34,7 +34,7 @@ #define MBACKUP_VERSION_INT1 100 #define MBACKUP_VERSION_INT2 0 -#define IS_FLAG_SET(x, y) ((x & y) == y) +#define IS_FLAG_SET(x, y) (((x) & (y)) == (y)) /** * Convert an device_link_service_error_t value to an mobilebackup_error_t value. -- cgit v1.1-32-gdbae