mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Assert against overrun.
This commit is contained in:
parent
6fcdb924e8
commit
5b6cbc5306
@ -105,6 +105,7 @@ private:
|
|||||||
{
|
{
|
||||||
const auto id = m_head;
|
const auto id = m_head;
|
||||||
m_head = ( m_head + 1 ) % Num;
|
m_head = ( m_head + 1 ) % Num;
|
||||||
|
assert( m_head != m_tail );
|
||||||
return m_query[id];
|
return m_query[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user