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:
parent
1cefb4a3b4
commit
0d77aa841a
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue