Put parentheses around some of the SWAP() macros, as pointed out by Peter
Kjellerstedt.
This commit is contained in:
@@ -114,9 +114,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BB_BIG_ENDIAN
|
#if BB_BIG_ENDIAN
|
||||||
#define SWAP_BE16(x) x
|
#define SWAP_BE16(x) (x)
|
||||||
#define SWAP_BE32(x) x
|
#define SWAP_BE32(x) (x)
|
||||||
#define SWAP_BE64(x) x
|
#define SWAP_BE64(x) (x)
|
||||||
#define SWAP_LE16(x) bswap_16(x)
|
#define SWAP_LE16(x) bswap_16(x)
|
||||||
#define SWAP_LE32(x) bswap_32(x)
|
#define SWAP_LE32(x) bswap_32(x)
|
||||||
#define SWAP_LE64(x) bswap_64(x)
|
#define SWAP_LE64(x) bswap_64(x)
|
||||||
@@ -124,9 +124,9 @@
|
|||||||
#define SWAP_BE16(x) bswap_16(x)
|
#define SWAP_BE16(x) bswap_16(x)
|
||||||
#define SWAP_BE32(x) bswap_32(x)
|
#define SWAP_BE32(x) bswap_32(x)
|
||||||
#define SWAP_BE64(x) bswap_64(x)
|
#define SWAP_BE64(x) bswap_64(x)
|
||||||
#define SWAP_LE16(x) x
|
#define SWAP_LE16(x) (x)
|
||||||
#define SWAP_LE32(x) x
|
#define SWAP_LE32(x) (x)
|
||||||
#define SWAP_LE64(x) x
|
#define SWAP_LE64(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ---- Networking ------------------------------------------ */
|
/* ---- Networking ------------------------------------------ */
|
||||||
|
Reference in New Issue
Block a user