mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix Vector::erase().
This commit is contained in:
parent
a1ce5fc1f6
commit
29d8911c6b
@ -176,7 +176,7 @@ public:
|
||||
assert( m_capacity != std::numeric_limits<uint8_t>::max() );
|
||||
assert( it >= m_ptr && it <= m_ptr + m_size );
|
||||
m_size--;
|
||||
memmove( it, it+1, m_size * sizeof( T ) );
|
||||
memmove( it, it+1, ( m_size - ( it - m_ptr ) ) * sizeof( T ) );
|
||||
return it;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user