Skip to content

Commit c05ca9f

Browse files
BenediktConzeBenedikt Conze
andauthored
Skip full mempool buckets (#18)
Co-authored-by: Benedikt Conze <conze@embedded.rwth-aachen.de>
1 parent 84ae113 commit c05ca9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rtps/storages/MemoryPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ template <class TYPE, uint32_t SIZE> class MemoryPool {
105105
return false;
106106
}
107107
for (uint8_t bucket = 0; bucket < sizeof(m_bitMap); ++bucket) {
108-
if (bucket != 0xFF) {
108+
if (m_bitMap[bucket] != 0xFF) {
109109
uint8_t byte = m_bitMap[bucket];
110110
for (uint8_t bit = 0; bit < 8; ++bit) {
111111
if (!(byte & 1)) {

0 commit comments

Comments
 (0)