mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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( m_capacity != std::numeric_limits<uint8_t>::max() );
|
||||||
assert( it >= m_ptr && it <= m_ptr + m_size );
|
assert( it >= m_ptr && it <= m_ptr + m_size );
|
||||||
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;
|
return it;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user