diff --git a/src/arena_allocator.cpp b/src/arena_allocator.cpp index 9c46aab..3523044 100644 --- a/src/arena_allocator.cpp +++ b/src/arena_allocator.cpp @@ -347,14 +347,7 @@ void ArenaAllocator::debug_dump(std::ostream &out, bool show_memory_map, size_t block_num = blocks.size() - i; // Calculate used bytes in this specific block - size_t block_used; - if (i == 0) { - // Current block - use offset - block_used = current_block_->offset; - } else { - // Previous blocks are fully used - block_used = b->size; - } + size_t block_used = b->offset; if (block_used == 0) { out << "Block #" << block_num << ": No content (empty)" << std::endl;