include/share/endswap.h : Fix fallback ENDSWAP_16 macro.

This commit is contained in:
Erik de Castro Lopo
2014-06-30 06:28:39 +10:00
parent 3eb4094b85
commit 0d1cb19525

View File

@@ -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