diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-07-28 00:33:45 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-07-28 00:33:45 -0400 |
commit | ed4c345ce86aad98c38fac120569eb9406fbfc37 (patch) | |
tree | b60134920e22a86e524030b83063a16e3ba5b6f8 /sosemanuk.cpp | |
parent | d0cd32f405244b28c4a78fc11fe5eb87a7397af1 (diff) | |
download | cryptopp-git-ed4c345ce86aad98c38fac120569eb9406fbfc37.tar.gz |
Clear Clang -Wsequence-point warning (Issue 449)
Diffstat (limited to 'sosemanuk.cpp')
-rw-r--r-- | sosemanuk.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sosemanuk.cpp b/sosemanuk.cpp index 7aa1bff1..709ae756 100644 --- a/sosemanuk.cpp +++ b/sosemanuk.cpp @@ -639,7 +639,8 @@ void SosemanukPolicy::OperateKeystream(KeystreamOperation operation, byte *outpu #define STEP(x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, v, u) \
u = (s##x9 + r2(x0)) ^ r1(x0);\
v = s##x0;\
- s##x0 = MUL_A(s##x0) ^ DIV_A(s##x3) ^ s##x9;\
+ w = s##x0;\
+ s##x0 = MUL_A(w) ^ DIV_A(s##x3) ^ s##x9;\
r1(x0) += XMUX(r2(x0), s##x2, s##x9);\
r2(x0) = rotlFixed(r2(x0) * 0x54655307, 7);\
@@ -665,7 +666,7 @@ void SosemanukPolicy::OperateKeystream(KeystreamOperation operation, byte *outpu word32 s9 = m_state[9];
word32 reg1 = m_state[10];
word32 reg2 = m_state[11];
- word32 u0, u1, u2, u3, u4, v0, v1, v2, v3;
+ word32 u0, u1, u2, u3, u4, v0, v1, v2, v3, w;
do
{
|