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/debugserver.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/debugserver.c')
-rw-r--r-- | src/debugserver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debugserver.c b/src/debugserver.c index 7dd7f22..39c1bdc 100644 --- a/src/debugserver.c +++ b/src/debugserver.c @@ -239,10 +239,10 @@ static char debugserver_int2hex(int x) return hexchars[x]; } -#define DEBUGSERVER_HEX_ENCODE_FIRST_BYTE(byte) debugserver_int2hex((byte >> 0x4) & 0xf) -#define DEBUGSERVER_HEX_ENCODE_SECOND_BYTE(byte) debugserver_int2hex(byte & 0xf) -#define DEBUGSERVER_HEX_DECODE_FIRST_BYTE(byte) ((byte >> 0x4) & 0xf) -#define DEBUGSERVER_HEX_DECODE_SECOND_BYTE(byte) (byte & 0xf) +#define DEBUGSERVER_HEX_ENCODE_FIRST_BYTE(byte) debugserver_int2hex(((byte) >> 0x4) & 0xf) +#define DEBUGSERVER_HEX_ENCODE_SECOND_BYTE(byte) debugserver_int2hex((byte) & 0xf) +#define DEBUGSERVER_HEX_DECODE_FIRST_BYTE(byte) (((byte) >> 0x4) & 0xf) +#define DEBUGSERVER_HEX_DECODE_SECOND_BYTE(byte) ((byte) & 0xf) static uint32_t debugserver_get_checksum_for_buffer(const char* buffer, uint32_t size) { |