From 0d1cb19525d7b599adb8bae7702bcf1e7abb13dd Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Mon, 30 Jun 2014 06:28:39 +1000 Subject: [PATCH] include/share/endswap.h : Fix fallback ENDSWAP_16 macro. --- include/share/endswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/share/endswap.h b/include/share/endswap.h index 74cdfc3b..058fe0b7 100644 --- a/include/share/endswap.h +++ b/include/share/endswap.h @@ -50,7 +50,7 @@ #else -#define ENDSWAP_16(x) (((((x) >> 8) & 0xFF00) + ((x) & 0xFF00) << 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