From 9454c6ba2bca2bff70a38d61fa77df8b9f75877f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 24 Jan 2016 18:27:44 -0500 Subject: [PATCH] Cleared -Wcast-align (Issue 122) --- seal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::OperateKeystream(KeystreamOperation operation, byte *output word32 a, b, c, d, n1, n2, n3, n4; unsigned int p, q; + assert(IsAlignedOn(m_T.begin(),GetAlignmentOf())); 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];