1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:15:08 +00:00

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
parent 1cefb4a3b4
commit 0d77aa841a

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());
}