diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-11-05 01:11:03 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-11-05 01:11:03 +0000 |
commit | cf8f50f114fbc0818b7b5f15eafe8a8f38924c67 (patch) | |
tree | 72eccbfcb2ab13a20efbbf471cbb984fdb5bf96b /seckey.h | |
parent | f62df68544a4da8ffd37991c9749476715ebc399 (diff) | |
download | cryptopp-cf8f50f114fbc0818b7b5f15eafe8a8f38924c67.tar.gz |
reduce warnings on GCC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@143 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'seckey.h')
-rw-r--r-- | seckey.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -56,7 +56,7 @@ public: protected: static inline void AssertValidRounds(unsigned int rounds) { - assert(rounds >= MIN_ROUNDS && rounds <= MAX_ROUNDS); + assert(rounds >= (unsigned int)MIN_ROUNDS && rounds <= (unsigned int)MAX_ROUNDS); } template <class T> @@ -64,7 +64,7 @@ protected: { obj->ThrowIfInvalidKeyLength(length); int rounds = param.GetIntValueWithDefault("Rounds", obj->StaticGetDefaultRounds(length)); - if (rounds < (unsigned int)MIN_ROUNDS || rounds > (unsigned int)MAX_ROUNDS) + if (rounds < (int)MIN_ROUNDS || rounds > (int)MAX_ROUNDS) throw InvalidRounds(obj->AlgorithmName(), rounds); obj->UncheckedSetKey(dir, key, length, rounds); } |