mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Fix circular_q::size()
This commit is contained in:
parent
042045b998
commit
daef0a2374
@ -77,11 +77,11 @@ public:
|
||||
{
|
||||
if (tail_ > head_)
|
||||
{
|
||||
return (tail_ - head_) % max_items_;
|
||||
return tail_ - head_;
|
||||
}
|
||||
else
|
||||
{
|
||||
return max_items_ - (head_ - tail_ ) % max_items_;
|
||||
return max_items_ - (head_ - tail_ );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user