mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fix circular_q::size() empty case
This commit is contained in:
parent
62e09e73f7
commit
63837530ed
@ -75,7 +75,7 @@ public:
|
||||
// Return number of elements actually stored
|
||||
size_t size() const
|
||||
{
|
||||
if (tail_ > head_)
|
||||
if (tail_ >= head_)
|
||||
{
|
||||
return tail_ - head_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user