diff options
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) | |||
239 | return hexchars[x]; | 239 | return hexchars[x]; |
240 | } | 240 | } |
241 | 241 | ||
242 | #define DEBUGSERVER_HEX_ENCODE_FIRST_BYTE(byte) debugserver_int2hex((byte >> 0x4) & 0xf) | 242 | #define DEBUGSERVER_HEX_ENCODE_FIRST_BYTE(byte) debugserver_int2hex(((byte) >> 0x4) & 0xf) |
243 | #define DEBUGSERVER_HEX_ENCODE_SECOND_BYTE(byte) debugserver_int2hex(byte & 0xf) | 243 | #define DEBUGSERVER_HEX_ENCODE_SECOND_BYTE(byte) debugserver_int2hex((byte) & 0xf) |
244 | #define DEBUGSERVER_HEX_DECODE_FIRST_BYTE(byte) ((byte >> 0x4) & 0xf) | 244 | #define DEBUGSERVER_HEX_DECODE_FIRST_BYTE(byte) (((byte) >> 0x4) & 0xf) |
245 | #define DEBUGSERVER_HEX_DECODE_SECOND_BYTE(byte) (byte & 0xf) | 245 | #define DEBUGSERVER_HEX_DECODE_SECOND_BYTE(byte) ((byte) & 0xf) |
246 | 246 | ||
247 | static uint32_t debugserver_get_checksum_for_buffer(const char* buffer, uint32_t size) | 247 | static uint32_t debugserver_get_checksum_for_buffer(const char* buffer, uint32_t size) |
248 | { | 248 | { |