This commit is contained in:
Václav Šmilauer 2019-11-09 09:35:05 +01:00
parent bad7284465
commit 042045b998

View File

@ -77,11 +77,11 @@ public:
{
if (tail_ > head_)
{
return (tail_ - head_) % max_items;
return (tail_ - head_) % max_items_;
}
else
{
return max_items - (head_ - tail_ ) % max_items;
return max_items_ - (head_ - tail_ ) % max_items_;
}
}