diff options
author | Andy Polyakov <appro@openssl.org> | 2006-07-04 20:29:50 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2006-07-04 20:29:50 +0000 |
commit | 86bdc0a3eeaf3e6967cad36af6ad46665e4103ec (patch) | |
tree | 7ee8b464a79c3cb1918e043f7f2fab51bcfc1e32 /crypto/aes/aes_x86core.c | |
parent | 1a4e245f3ebcaef6b02b73de5305d1f2c04fbeeb (diff) | |
download | openssl-86bdc0a3eeaf3e6967cad36af6ad46665e4103ec.tar.gz |
Fix compiler warnings.
Diffstat (limited to 'crypto/aes/aes_x86core.c')
-rw-r--r-- | crypto/aes/aes_x86core.c | 16 |
1 files changed, 8 insertions, 8 deletions
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), |