Mercurial > libavutil.hg
changeset 918:e0e9e51684ef libavutil
bswap: 10L add missing parens around macro args
author | mru |
---|---|
date | Sun, 09 May 2010 20:32:35 +0000 |
parents | 3ab411c447c4 |
children | 074893f9f95e |
files | bswap.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bswap.h Sat May 08 20:41:20 2010 +0000 +++ b/bswap.h Sun May 09 20:32:35 2010 +0000 @@ -43,8 +43,8 @@ #endif #define AV_BSWAP16C(x) (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff)) -#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C(x >> 16)) -#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C(x >> 32)) +#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16)) +#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32)) #define AV_BSWAPC(s, x) AV_BSWAP##s##C(x)