Kernel/Process: Use auto to avoid incompatible types, causing a signedness warning in the ASSERT

This commit is contained in:
Robin Burchell 2019-05-17 15:59:57 +02:00 committed by Andreas Kling
commit 0d77aa841a
Notes: sideshowbarker 2024-07-19 14:03:33 +09:00

View file

@ -2317,7 +2317,7 @@ void SharedBuffer::destroy_if_unused()
#ifdef SHARED_BUFFER_DEBUG
kprintf("Destroying unused SharedBuffer{%p} id: %d (pid1: %d, pid2: %d)\n", this, m_shared_buffer_id, m_pid1, m_pid2);
#endif
size_t count_before = shared_buffers().resource().size();
auto count_before = shared_buffers().resource().size();
shared_buffers().resource().remove(m_shared_buffer_id);
ASSERT(count_before != shared_buffers().resource().size());
}