From 246dcb30f0de761ad78f24e938372d618eeaa94a Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 15 Apr 2015 14:38:53 +0300 Subject: [PATCH] Map<> fix for tiny mode --- libuavcan/include/uavcan/util/map.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libuavcan/include/uavcan/util/map.hpp b/libuavcan/include/uavcan/util/map.hpp index c011359667..814dd517a0 100644 --- a/libuavcan/include/uavcan/util/map.hpp +++ b/libuavcan/include/uavcan/util/map.hpp @@ -478,6 +478,7 @@ void MapBase::removeAll() template typename MapBase::KVPair* MapBase::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::KVPair* MapBase::getByIndex(unsigned i index--; } } +#endif // Slowly crawling through the dynamic storage KVGroup* p = list_.get();