Fix circular_q::size() empty case

This commit is contained in:
Václav Šmilauer 2019-11-09 19:26:49 +01:00
parent 62e09e73f7
commit 63837530ed

View File

@ -75,7 +75,7 @@ public:
// Return number of elements actually stored
size_t size() const
{
if (tail_ > head_)
if (tail_ >= head_)
{
return tail_ - head_;
}