From cf8f50f114fbc0818b7b5f15eafe8a8f38924c67 Mon Sep 17 00:00:00 2001 From: weidai Date: Wed, 5 Nov 2003 01:11:03 +0000 Subject: reduce warnings on GCC git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@143 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- seckey.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'seckey.h') 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 @@ -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); } -- cgit v1.2.1