diff --git a/src/lib/support/Pool.cpp b/src/lib/support/Pool.cpp index 9be51d96f30562..b794bb4080f577 100644 --- a/src/lib/support/Pool.cpp +++ b/src/lib/support/Pool.cpp @@ -19,6 +19,8 @@ #include +#include + namespace chip { StaticAllocatorBitmap::StaticAllocatorBitmap(void * storage, std::atomic * usage, size_t capacity, @@ -67,7 +69,7 @@ void StaticAllocatorBitmap::Deallocate(void * element) assert(index < Capacity()); auto value = mUsage[word].fetch_and(~(kBit1 << offset)); - assert((value & (kBit1 << offset)) != 0); // assert fail when free an unused slot + nlASSERT((value & (kBit1 << offset)) != 0); // assert fail when free an unused slot mAllocated--; }