summaryrefslogtreecommitdiff
path: root/seal.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-01-24 18:27:44 -0500
committerJeffrey Walton <noloader@gmail.com>2016-01-24 18:27:44 -0500
commit9454c6ba2bca2bff70a38d61fa77df8b9f75877f (patch)
treebd343d1db50d4b8bb1af9daf1aca12e5b4ed41e7 /seal.cpp
parent005d6fabf0f225759f97d8184963160e775b3066 (diff)
downloadcryptopp-git-9454c6ba2bca2bff70a38d61fa77df8b9f75877f.tar.gz
Cleared -Wcast-align (Issue 122)
Diffstat (limited to 'seal.cpp')
-rw-r--r--seal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/seal.cpp b/seal.cpp
index da0d2e15..15392ac0 100644
--- a/seal.cpp
+++ b/seal.cpp
@@ -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];