diff options
author | Marcel Raad <MarcelRaad@users.noreply.github.com> | 2019-01-02 18:05:26 +0100 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-01-02 12:05:26 -0500 |
commit | 1a4b851ac170b16c9d07c73d387386a6883d938c (patch) | |
tree | d4c73898bc0f767c868c32b756f71a060dd004ab /seckey.h | |
parent | da2444d243ddcc211a0107740faae7401c3de773 (diff) | |
download | cryptopp-git-1a4b851ac170b16c9d07c73d387386a6883d938c.tar.gz |
Fix clang warnings (GH #771)
Diffstat (limited to 'seckey.h')
-rw-r--r-- | seckey.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -265,7 +265,7 @@ public: /// \brief The maximum key length used by the algorithm
/// \returns maximum key length used by the algorithm, in bytes
size_t MaxKeyLength() const
- {return (size_t)INFO::MAX_KEYLENGTH;}
+ {return static_cast<size_t>(INFO::MAX_KEYLENGTH);}
/// \brief The default key length used by the algorithm
/// \returns default key length used by the algorithm, in bytes
@@ -286,7 +286,7 @@ public: /// \details The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement
/// in cryptlib.h for allowed values.
SimpleKeyingInterface::IV_Requirement IVRequirement() const
- {return (SimpleKeyingInterface::IV_Requirement)INFO::IV_REQUIREMENT;}
+ {return static_cast<SimpleKeyingInterface::IV_Requirement>(INFO::IV_REQUIREMENT);}
/// \brief The initialization vector length for the algorithm
/// \details IVSize is provided in bytes, not bits. The default implementation uses
|