From a3afa695ee3eb1ff5ad8de3e80c20d5049fce934 Mon Sep 17 00:00:00 2001 From: "Chas Williams (CONTRACTOR)" Date: Fri, 22 Oct 2010 07:37:05 -0400 Subject: [PATCH] hcrypto: struct x64 doesn't need bitfields hcrypto: struct x64 doesn't need bitfields The bitfield specifications on the struct x64 members do not actually do anything to guarantee/force packing or endian of the members. Removing them allows the code to compile on certain compilers that do not support bitfields on 64-bit types. Signed-off-by: Love Hornquist Astrand --- lib/hcrypto/sha512.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hcrypto/sha512.c b/lib/hcrypto/sha512.c index 99cfa0515..fb38cadb6 100644 --- a/lib/hcrypto/sha512.c +++ b/lib/hcrypto/sha512.c @@ -177,12 +177,12 @@ swap_uint64_t (uint64_t t) return ((temp & 0xffff0000ffff0000ULL) >> 16) | ((temp & 0x0000ffff0000ffffULL) << 16); } -#endif struct x64{ - uint64_t a:64; - uint64_t b:64; + uint64_t a; + uint64_t b; }; +#endif void SHA512_Update (SHA512_CTX *m, const void *v, size_t len)