diff options
author | Ben Summers <ben@fluffy.co.uk> | 2006-02-01 19:50:54 +0000 |
---|---|---|
committer | Ben Summers <ben@fluffy.co.uk> | 2006-02-01 19:50:54 +0000 |
commit | 45d64d4d38b698f0945fd04f1fce484e008dba99 (patch) | |
tree | da0fc6d9ba24d00f2ee787c6420a565e9db031e6 /lib/crypto/Random.cpp | |
parent | cea3d8219a4b025e63238e08421cc1b6da74e796 (diff) |
Get rid of the non-test compiler warnings seen on Darwin with gcc4
Diffstat (limited to 'lib/crypto/Random.cpp')
-rw-r--r-- | lib/crypto/Random.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |