summaryrefslogtreecommitdiff
path: root/cryptlib.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-12-25 22:27:53 -0500
committerJeffrey Walton <noloader@gmail.com>2017-12-25 22:27:53 -0500
commit4232cfd40b692da38a3c3098af801d16ebb26852 (patch)
tree057ebacbf39dd09c62ada3ee4c8153161e31017b /cryptlib.cpp
parentb20a91f6b2f6a41cc10f9fe5da63fa91f7f081e4 (diff)
downloadcryptopp-git-4232cfd40b692da38a3c3098af801d16ebb26852.tar.gz
Fix failed self test under Clang (GH #533)
This may cause GH #300, "Clang 3.9 and missing member definitions for template classes" or GH #294, "Fix clang warnings about undefined variable templates in pkcspad.h" to resurface. Man I hope not...
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r--cryptlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp
index ddc829db..fbe5687a 100644
--- a/cryptlib.cpp
+++ b/cryptlib.cpp
@@ -148,7 +148,7 @@ size_t BlockTransformation::AdvancedProcessBlocks(const byte *inBlocks, const by
CRYPTOPP_ASSERT(outBlocks);
CRYPTOPP_ASSERT(length);
- const ptrdiff_t blockSize = static_cast<ptrdiff_t>(BlockSize());
+ const size_t blockSize = BlockSize();
ptrdiff_t inIncrement = (flags & (BT_InBlockIsCounter|BT_DontIncrementInOutPointers)) ? 0 : blockSize;
ptrdiff_t xorIncrement = xorBlocks ? blockSize : 0;
ptrdiff_t outIncrement = (flags & BT_DontIncrementInOutPointers) ? 0 : blockSize;