diff --git a/.github/workflows/platformio.yml b/.github/workflows/platformio.yml index 6c83781..4040832 100644 --- a/.github/workflows/platformio.yml +++ b/.github/workflows/platformio.yml @@ -3,7 +3,8 @@ name: PlatformIO # Builds examples/platformio/xallocator-demo for every board in its # platformio.ini, and runs the native build on the desktop. The example's # lib_deps points at this checkout, so each push tests the library as -# PlatformIO users consume it (library.json, srcFilter). +# PlatformIO users consume it (library.json, srcFilter). Allocator, a +# dependency in library.json, comes from the PlatformIO registry. on: push: diff --git a/Allocator.cpp b/Allocator.cpp index bbc049d..29f023e 100644 --- a/Allocator.cpp +++ b/Allocator.cpp @@ -72,6 +72,7 @@ void* Allocator::Allocate(size_t size) if(m_poolIndex < m_maxObjects) { pBlock = (void*)(m_pPool + (m_poolIndex++ * m_blockSize)); + m_blockCnt++; } else { diff --git a/README.md b/README.md index 5e8e89d..0a95317 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,10 @@ Originally published on CodeProject at: ", "+", "+"] + "srcFilter": ["-<*>", "+"] }, "examples": [ {