summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-11-05 01:11:03 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-11-05 01:11:03 +0000
commitcf8f50f114fbc0818b7b5f15eafe8a8f38924c67 (patch)
tree72eccbfcb2ab13a20efbbf471cbb984fdb5bf96b /seckey.h
parentf62df68544a4da8ffd37991c9749476715ebc399 (diff)
downloadcryptopp-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/seckey.h b/seckey.h
index 05d3699..0332d98 100644
--- a/seckey.h
+++ b/seckey.h
@@ -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);
}