mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
increment is evaluated before assignment so this should silence the warning...not sure if correct or not though
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user