Map<> fix for tiny mode

This commit is contained in:
Pavel Kirienko
2015-04-15 14:38:53 +03:00
parent d4eee21747
commit 246dcb30f0
+2
View File
@@ -478,6 +478,7 @@ void MapBase<Key, Value>::removeAll()
template <typename Key, typename Value>
typename MapBase<Key, Value>::KVPair* MapBase<Key, Value>::getByIndex(unsigned index)
{
#if !UAVCAN_TINY
// Checking the static storage
for (unsigned i = 0; i < num_static_entries_; i++)
{
@@ -490,6 +491,7 @@ typename MapBase<Key, Value>::KVPair* MapBase<Key, Value>::getByIndex(unsigned i
index--;
}
}
#endif
// Slowly crawling through the dynamic storage
KVGroup* p = list_.get();