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/mobilebackup.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/mobilebackup.c')
-rw-r--r-- | src/mobilebackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |