diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-01-24 18:27:44 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-01-24 18:27:44 -0500 |
commit | 9454c6ba2bca2bff70a38d61fa77df8b9f75877f (patch) | |
tree | bd343d1db50d4b8bb1af9daf1aca12e5b4ed41e7 /seal.cpp | |
parent | 005d6fabf0f225759f97d8184963160e775b3066 (diff) | |
download | cryptopp-git-9454c6ba2bca2bff70a38d61fa77df8b9f75877f.tar.gz |
Cleared -Wcast-align (Issue 122)
Diffstat (limited to 'seal.cpp')
-rw-r--r-- | seal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -93,9 +93,10 @@ void SEAL_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output word32 a, b, c, d, n1, n2, n3, n4;
unsigned int p, q;
+ assert(IsAlignedOn(m_T.begin(),GetAlignmentOf<word32>()));
for (size_t iteration = 0; iteration < iterationCount; ++iteration)
{
-#define Ttab(x) *(word32 *)((byte *)m_T.begin()+x)
+ #define Ttab(x) *(word32 *)(void*)((byte *)m_T.begin()+x)
a = m_outsideCounter ^ m_R[4*m_insideCounter];
b = rotrFixed(m_outsideCounter, 8U) ^ m_R[4*m_insideCounter+1];
|