diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2015-10-19 14:48:52 -0700 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2015-10-19 14:48:52 -0700 |
commit | 8509db30ca0a36f359f6efc11374ec2c33d7a671 (patch) | |
tree | 3d45aef52d609fed946af264b0af30ce3b630fbd /lib | |
parent | c4c057fbfe6d25d02448ea4619e56093e7ac0624 (diff) | |
download | nss-hg-8509db30ca0a36f359f6efc11374ec2c33d7a671.tar.gz |
Bug 1216318 - Simple fix for byteswap, r=ekr
Diffstat (limited to 'lib')
-rw-r--r-- | lib/freebl/sha512.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freebl/sha512.c b/lib/freebl/sha512.c index fb7ce5974..28e7c04b5 100644 --- a/lib/freebl/sha512.c +++ b/lib/freebl/sha512.c @@ -127,7 +127,7 @@ static PRUint32 swap4b(PRUint32 value) PRUint32 t1 = (value << 16) | (value >> 16); return ((t1 & SWAP4MASK) << 8) | ((t1 >> 8) & SWAP4MASK); } -#define SHA_HTONL(x) swap4b +#define SHA_HTONL(x) swap4b(x) #endif #define BYTESWAP4(x) x = SHA_HTONL(x) #endif /* defined(IS_LITTLE_ENDIAN) */ |