2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Replace COMPILER_ASSERT with C++0B static_assert

This commit is contained in:
2012-06-17 03:10:59 -04:00
parent 5d30f69957
commit 3667fb62e2
18 changed files with 23 additions and 33 deletions

View File

@ -4017,7 +4017,7 @@ bool VaultFindNodeTrans::Recv (
const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg;
if (IS_NET_SUCCESS(reply.result)) {
COMPILER_ASSERT(sizeof(unsigned) == sizeof(uint32_t));
static_assert(sizeof(unsigned) == sizeof(uint32_t), "unsigned is not the same size as uint32_t");
m_nodeIds.Set((unsigned *)reply.nodeIds, reply.nodeIdCount);
}