mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
Kernel/Process: Use auto to avoid incompatible types, causing a signedness warning in the ASSERT
This commit is contained in:
committed by
Andreas Kling
parent
1cefb4a3b4
commit
0d77aa841a
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user