From 45d64d4d38b698f0945fd04f1fce484e008dba99 Mon Sep 17 00:00:00 2001 From: Ben Summers Date: Wed, 1 Feb 2006 19:50:54 +0000 Subject: Get rid of the non-test compiler warnings seen on Darwin with gcc4 --- lib/crypto/Random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/crypto') diff --git a/lib/crypto/Random.cpp b/lib/crypto/Random.cpp index c64e7d50..30049ff7 100644 --- a/lib/crypto/Random.cpp +++ b/lib/crypto/Random.cpp @@ -69,7 +69,7 @@ void Random::Generate(void *pOutput, int Length) std::string Random::GenerateHex(int Length) { uint8_t r[256]; - if(Length > sizeof(r)) + if(Length > (int)sizeof(r)) { THROW_EXCEPTION(CipherException, LengthRequestedTooLongForRandomHex) } -- cgit v1.2.3