From b08c520d33bf14631e27a06015c3bb7d3d25f71a Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 13 Jul 2014 20:36:57 +1000 Subject: include/share/endswap.h : Fix default ENDSWAP_16. Patch-from: lvqcl --- include/share/endswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/share/endswap.h b/include/share/endswap.h index 9a5d86fa..c3133335 100644 --- a/include/share/endswap.h +++ b/include/share/endswap.h @@ -58,7 +58,7 @@ static inline unsigned short __builtin_bswap16(unsigned short a) #else -#define ENDSWAP_16(x) (((((x) >> 8) & 0xFF) + ((x) & 0xFF) << 8)) +#define ENDSWAP_16(x) ((((x) >> 8) & 0xFF) + (((x) & 0xFF) << 8)) #define ENDSWAP_32(x) ((((x) >> 24) & 0xFF) + (((x) >> 8) & 0xFF00) + (((x) & 0xFF00) << 8) + (((x) & 0xFF) << 24)) #endif -- cgit v1.2.1