diff --git a/source/lib/allocators/headerless.cpp b/source/lib/allocators/headerless.cpp index 7b1f738e0a..f29a1e6d3d 100644 --- a/source/lib/allocators/headerless.cpp +++ b/source/lib/allocators/headerless.cpp @@ -539,7 +539,7 @@ public: m_totalDeallocatedBlocks++; m_totalDeallocatedBytes += size; ENSURE(m_totalDeallocatedBlocks <= m_totalAllocatedBlocks); - ENSURE(m_totalDeallocatedBytes <= m_totalDeallocatedBytes); + ENSURE(m_totalDeallocatedBytes <= m_totalAllocatedBytes); ENSURE(m_currentExtantBlocks != 0); ENSURE(m_currentExtantBytes >= size);