summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2015-10-19 14:48:52 -0700
committerMartin Thomson <martin.thomson@gmail.com>2015-10-19 14:48:52 -0700
commit8509db30ca0a36f359f6efc11374ec2c33d7a671 (patch)
tree3d45aef52d609fed946af264b0af30ce3b630fbd /lib
parentc4c057fbfe6d25d02448ea4619e56093e7ac0624 (diff)
downloadnss-hg-8509db30ca0a36f359f6efc11374ec2c33d7a671.tar.gz
Bug 1216318 - Simple fix for byteswap, r=ekr
Diffstat (limited to 'lib')
-rw-r--r--lib/freebl/sha512.c2
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) */