Commit 63837530 authored by Václav Šmilauer's avatar Václav Šmilauer

Fix circular_q::size() empty case

parent 62e09e73
......@@ -75,7 +75,7 @@ public:
// Return number of elements actually stored
size_t size() const
{
if (tail_ > head_)
if (tail_ >= head_)
{
return tail_ - head_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment