diff options
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r-- | cryptlib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp index 41461c61..3de5c02b 100644 --- a/cryptlib.cpp +++ b/cryptlib.cpp @@ -232,8 +232,9 @@ size_t StreamTransformation::ProcessLastBlock(byte *outString, size_t outLength, if (inLength == MandatoryBlockSize())
{
+ outLength = inLength; // squash unused warning
ProcessData(outString, inString, inLength);
- return inLength;
+ return outLength;
}
else if (inLength != 0)
throw NotImplemented(AlgorithmName() + ": this object doesn't support a special last block");
|