Explorar o código

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

Robin Burchell %!s(int64=6) %!d(string=hai) anos
pai
achega
0d77aa841a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Kernel/Process.cpp

+ 1 - 1
Kernel/Process.cpp

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