Assert against overrun.

This commit is contained in:
Bartosz Taudul 2017-11-11 21:19:51 +01:00
parent 6fcdb924e8
commit 5b6cbc5306

View File

@ -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];
} }