1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 02:51:27 +00:00

Some fixes for Clang

This commit is contained in:
2014-08-09 12:44:57 -07:00
parent 094b0fe557
commit 085c00706c
3 changed files with 6 additions and 5 deletions

View File

@ -721,7 +721,7 @@ bool plSecureStream::GetSecureEncryptionKey(const plFileName& filename, uint32_t
}
// file doesn't exist, use default key
unsigned memSize = std::min(length, arrsize(plSecureStream::kDefaultKey));
unsigned memSize = std::min(size_t(length), arrsize(plSecureStream::kDefaultKey));
memSize *= sizeof(uint32_t);
memcpy(key, plSecureStream::kDefaultKey, memSize);