From 752f0a6001b7b023cd6c21b906eb5c0ef7bcbd66 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 30 May 2006 06:28:03 +0000 Subject: Put parentheses around some of the SWAP() macros, as pointed out by Peter Kjellerstedt. --- include/platform.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index 10c1d7d86..1847bc223 100644 --- a/include/platform.h +++ b/include/platform.h @@ -114,9 +114,9 @@ #endif #if BB_BIG_ENDIAN -#define SWAP_BE16(x) x -#define SWAP_BE32(x) x -#define SWAP_BE64(x) x +#define SWAP_BE16(x) (x) +#define SWAP_BE32(x) (x) +#define SWAP_BE64(x) (x) #define SWAP_LE16(x) bswap_16(x) #define SWAP_LE32(x) bswap_32(x) #define SWAP_LE64(x) bswap_64(x) @@ -124,9 +124,9 @@ #define SWAP_BE16(x) bswap_16(x) #define SWAP_BE32(x) bswap_32(x) #define SWAP_BE64(x) bswap_64(x) -#define SWAP_LE16(x) x -#define SWAP_LE32(x) x -#define SWAP_LE64(x) x +#define SWAP_LE16(x) (x) +#define SWAP_LE32(x) (x) +#define SWAP_LE64(x) (x) #endif /* ---- Networking ------------------------------------------ */ -- cgit v1.2.3