From: Andy Polyakov Date: Tue, 4 Jul 2006 20:29:50 +0000 (+0000) Subject: Fix compiler warnings. X-Git-Tag: OpenSSL_0_9_8k^2~1226 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86bdc0a3eeaf3e6967cad36af6ad46665e4103ec;p=oweals%2Fopenssl.git Fix compiler warnings. --- diff --git a/crypto/aes/aes_x86core.c b/crypto/aes/aes_x86core.c index b7f540b22e..3db36ff610 100644 --- a/crypto/aes/aes_x86core.c +++ b/crypto/aes/aes_x86core.c @@ -69,10 +69,10 @@ Te1[x] = S [x].[03, 02, 01, 01]; Te2[x] = S [x].[01, 03, 02, 01]; Te3[x] = S [x].[01, 01, 03, 02]; */ -#define Te0 ((u64*)((u8*)Te+0)) -#define Te1 ((u64*)((u8*)Te+3)) -#define Te2 ((u64*)((u8*)Te+2)) -#define Te3 ((u64*)((u8*)Te+1)) +#define Te0 (u32)((u64*)((u8*)Te+0)) +#define Te1 (u32)((u64*)((u8*)Te+3)) +#define Te2 (u32)((u64*)((u8*)Te+2)) +#define Te3 (u32)((u64*)((u8*)Te+1)) /* Td [x] = Si[x].[0e, 09, 0d, 0b, 0e, 09, 0d, 0b]; Td0[x] = Si[x].[0e, 09, 0d, 0b]; @@ -81,10 +81,10 @@ Td2[x] = Si[x].[0d, 0b, 0e, 09]; Td3[x] = Si[x].[09, 0d, 0b, 0e]; Td4[x] = Si[x].[01]; */ -#define Td0 ((u64*)((u8*)Td+0)) -#define Td1 ((u64*)((u8*)Td+3)) -#define Td2 ((u64*)((u8*)Td+2)) -#define Td3 ((u64*)((u8*)Td+1)) +#define Td0 (u32)((u64*)((u8*)Td+0)) +#define Td1 (u32)((u64*)((u8*)Td+3)) +#define Td2 (u32)((u64*)((u8*)Td+2)) +#define Td3 (u32)((u64*)((u8*)Td+1)) static const u64 Te[256] = { U64(0xa56363c6a56363c6), U64(0x847c7cf8847c7cf8),