mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Fix circular_q::size() empty case
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
|||||||
// Return number of elements actually stored
|
// Return number of elements actually stored
|
||||||
size_t size() const
|
size_t size() const
|
||||||
{
|
{
|
||||||
if (tail_ > head_)
|
if (tail_ >= head_)
|
||||||
{
|
{
|
||||||
return tail_ - head_;
|
return tail_ - head_;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user