From: Marcus Watts Date: Tue, 17 Jul 2007 13:09:41 +0000 (+0000) Subject: STABLE14-bg-fcrypt-64bit-fix-20070717 X-Git-Tag: openafs-stable-1_4_5-pre1~56 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cc10a541bd353c56375a9836f5eb76b15c8ef9fa;p=packages%2Fo%2Fopenafs.git STABLE14-bg-fcrypt-64bit-fix-20070717 instead of this arcane ifdef which is flawed, we know which platforms support 64 bit types... (cherry picked from commit 2abf6e204c6f72993021a45485523aa04bca8ac2) --- diff --git a/src/rxkad/bg-fcrypt.c b/src/rxkad/bg-fcrypt.c index 35a8380cb..53d5cfaab 100644 --- a/src/rxkad/bg-fcrypt.c +++ b/src/rxkad/bg-fcrypt.c @@ -550,7 +550,7 @@ fc_keysched(void *key_, fc_KeySchedule sched) const unsigned char *key = key_; /* Do we have 56 bit longs or even longer longs? */ -#if ((1ul << 31) << 1) && defined(ULONG_MAX) && ((ULONG_MAX >> 55) != 0) && ((1ul << 55) != 0) +#ifdef AFS_64BIT_ENV unsigned long k; /* k holds all 56 non parity bits */ /* Compress out parity bits */