mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Replace COMPILER_ASSERT with C++0B static_assert
This commit is contained in:
@ -271,7 +271,7 @@ static const char * s_transTypes[] = {
|
||||
"GkAuthSrvIpAddress",
|
||||
|
||||
};
|
||||
COMPILER_ASSERT(arrsize(s_transTypes) == kNumTransTypes);
|
||||
static_assert(arrsize(s_transTypes) == kNumTransTypes, "Ngl Trans array and enum differ in size");
|
||||
|
||||
static long s_perfTransCount[kNumTransTypes];
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user