Most enums were replaced with constants, according to MISRA

This commit is contained in:
Pavel Kirienko
2014-04-19 15:16:10 +04:00
parent ace2cf9d0e
commit dfe3b4511e
21 changed files with 95 additions and 55 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ class UAVCAN_EXPORT MapBase : Noncopyable
KVGroup()
{
StaticAssert<(NumKV > 0)>::check();
StaticAssert<(static_cast<unsigned>(NumKV) > 0)>::check();
IsDynamicallyAllocatable<KVGroup>::check();
}
@@ -72,7 +72,7 @@ class UAVCAN_EXPORT MapBase : Noncopyable
KVPair* find(const Key& key)
{
for (int i = 0; i < NumKV; i++)
for (unsigned i = 0; i < static_cast<unsigned>(NumKV); i++)
{
if (kvs[i].match(key))
{