diff --git a/include/etl/ipool.h b/include/etl/ipool.h index 44802f81..66e7fc03 100644 --- a/include/etl/ipool.h +++ b/include/etl/ipool.h @@ -353,7 +353,7 @@ namespace etl p_value = p_next; ++items_allocated; - if (items_allocated != Max_Size) + if (items_allocated < Max_Size) { // Set up the pointer to the next free item p_next = *reinterpret_cast(p_next);