summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorMarcel Raad <MarcelRaad@users.noreply.github.com>2019-01-02 18:05:26 +0100
committerJeffrey Walton <noloader@gmail.com>2019-01-02 12:05:26 -0500
commit1a4b851ac170b16c9d07c73d387386a6883d938c (patch)
treed4c73898bc0f767c868c32b756f71a060dd004ab /seckey.h
parentda2444d243ddcc211a0107740faae7401c3de773 (diff)
downloadcryptopp-git-1a4b851ac170b16c9d07c73d387386a6883d938c.tar.gz
Fix clang warnings (GH #771)
Diffstat (limited to 'seckey.h')
-rw-r--r--seckey.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/seckey.h b/seckey.h
index 90fd6dce..f80767ac 100644
--- a/seckey.h
+++ b/seckey.h
@@ -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