From 6010ad6b90e4abc080d20417b41bbabbc42f265c Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 13 Oct 2015 11:14:36 -0500 Subject: [PATCH] increment is evaluated before assignment so this should silence the warning...not sure if correct or not though --- .../ours/library/crypto/src/shared/original/cryptlib.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/external/ours/library/crypto/src/shared/original/cryptlib.cpp b/external/ours/library/crypto/src/shared/original/cryptlib.cpp index c3c1df06..4341b5b7 100644 --- a/external/ours/library/crypto/src/shared/original/cryptlib.cpp +++ b/external/ours/library/crypto/src/shared/original/cryptlib.cpp @@ -50,8 +50,10 @@ void StreamCipher::ProcessString(byte *outString, const byte *inString, unsigned void StreamCipher::ProcessString(byte *inoutString, unsigned int length) { - while(length--) - *inoutString++ = ProcessByte(*inoutString); //TODO: order of operations issue here, per the warning + while(length--) { + *inoutString++; + *inoutString = ProcessByte(*inoutString); + } } bool HashModule::Verify(const byte *digestIn)