diff options
author | Rosen Penev | 2020-12-23 17:31:34 -0800 |
---|---|---|
committer | Nikias Bassen | 2022-04-22 13:22:38 +0200 |
commit | 95316d81633120244d53b85303447beb1a917f74 (patch) | |
tree | d836d7b096a86bc64b1e64c09f6c4433b0df67cb /src/mobilebackup2.c | |
parent | 78040882a30666f29985bc6589be03cbc7d7cfbe (diff) | |
download | libimobiledevice-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 'src/mobilebackup2.c')
-rw-r--r-- | src/mobilebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c index 6c6556d..f4fde95 100644 --- a/src/mobilebackup2.c +++ b/src/mobilebackup2.c @@ -33,7 +33,7 @@ #define MBACKUP2_VERSION_INT1 400 #define MBACKUP2_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 mobilebackup2_error_t value. |