summaryrefslogtreecommitdiff
path: root/strciphr.h
diff options
context:
space:
mode:
authorMarcel Raad <MarcelRaad@users.noreply.github.com>2018-05-11 01:59:21 +0200
committerJeffrey Walton <noloader@gmail.com>2018-05-10 19:59:21 -0400
commit7c1d296283fab97a2a5d34445b8c4adca0b9ea0e (patch)
tree9444a3cfe124d3f185c27e331d3a733d5c412dc8 /strciphr.h
parenta07a0e5e5f5f9ad8c3533202b6a7cd3a8036f5f4 (diff)
downloadcryptopp-git-7c1d296283fab97a2a5d34445b8c4adca0b9ea0e.tar.gz
Fix clang warnings in headers (#655)
* remove superfluous semicolon * Remove C-style casts from public headers clang warns about them with -Wold-style-cast. It also warns about implicitly casting away const with -Wcast-qual. Fix both by removing unnecessary casts and converting the remaining ones to C++ casts.
Diffstat (limited to 'strciphr.h')
-rw-r--r--strciphr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/strciphr.h b/strciphr.h
index 3697ddf3..ea9ab6a5 100644
--- a/strciphr.h
+++ b/strciphr.h
@@ -130,7 +130,7 @@ struct CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AdditiveCipherAbstractPolicy
/// \param iterationCount the number of iterations to generate the key stream
/// \sa CanOperateKeystream(), OperateKeystream(), WriteKeystream()
virtual void WriteKeystream(byte *keystream, size_t iterationCount)
- {OperateKeystream(KeystreamOperation(INPUT_NULL | (KeystreamOperationFlags)IsAlignedOn(keystream, GetAlignment())), keystream, NULLPTR, iterationCount);}
+ {OperateKeystream(KeystreamOperation(INPUT_NULL | static_cast<KeystreamOperationFlags>(IsAlignedOn(keystream, GetAlignment()))), keystream, NULLPTR, iterationCount);}
/// \brief Flag indicating
/// \returns true if the stream can be generated independent of the transformation input, false otherwise