summaryrefslogtreecommitdiff
path: root/cryptlib.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-10-01 09:32:07 -0400
committerJeffrey Walton <noloader@gmail.com>2017-10-01 09:32:07 -0400
commit3cfbe66c829b68de01ff40536664bdffe2cb2a7f (patch)
tree28475ca098f8687234febedcd7865345a55ab8cd /cryptlib.cpp
parentbbc6ea53558c12ed7ea8880b8515432f6c7414d2 (diff)
downloadcryptopp-git-3cfbe66c829b68de01ff40536664bdffe2cb2a7f.tar.gz
Update documentation
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r--cryptlib.cpp3
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");