From: Kurt Zeilenga Date: Wed, 21 Oct 1998 02:22:43 +0000 (+0000) Subject: Fix BYTE_ORDER test. X-Git-Tag: PHP3_TOOL_0_0~18^2~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92b28cf3973c0d8c112d08cec8308b66464e9aab;p=openldap Fix BYTE_ORDER test. --- diff --git a/libraries/liblutil/sha1.c b/libraries/liblutil/sha1.c index 833317d708..a6153f1f8a 100644 --- a/libraries/liblutil/sha1.c +++ b/libraries/liblutil/sha1.c @@ -35,12 +35,12 @@ * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay */ -#if BYTE_ORDER = LITTLE_ENDIAN +#if BYTE_ORDER == LITTLE_ENDIAN # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) -#endif #else # define blk0(i) block->l[i] +#endif #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ ^block->l[(i+2)&15]^block->l[i&15],1))