summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-05 16:50:23 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-05 16:50:23 -0400
commitf19b23d5b5ce33b650672e2ca52a45f0e1d74187 (patch)
treeedb106214684bcd250adcdd507ef0301baac9257 /seckey.h
parent09023bf45e5bb32ac31c5ddce0105a4e0afe3b83 (diff)
downloadcryptopp-git-f19b23d5b5ce33b650672e2ca52a45f0e1d74187.tar.gz
Clear GCC warnings with -Wall -Wextra
Diffstat (limited to 'seckey.h')
-rw-r--r--seckey.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/seckey.h b/seckey.h
index 1b1512b3..088bf754 100644
--- a/seckey.h
+++ b/seckey.h
@@ -474,7 +474,8 @@ public:
//! Provides the block size of the algorithm
//! \returns the block size, in bytes
unsigned int BlockSize() const {
- return m_blocksize ? m_blocksize : this->DEFAULT_BLOCKSIZE;
+ return m_blocksize ? m_blocksize :
+ static_cast<unsigned int>(this->DEFAULT_BLOCKSIZE);
}
//! Provides the initialization vector length of the algorithm
@@ -482,7 +483,8 @@ public:
unsigned int IVSize() const {
if (!this->IsResynchronizable())
throw NotImplemented(this->GetAlgorithm().AlgorithmName() + ": this object doesn't support resynchronization");
- return m_ivlength ? m_ivlength : this->IV_LENGTH;
+ return m_ivlength ? m_ivlength :
+ static_cast<unsigned int>(this->IV_LENGTH);
}
protected: