Fix circular_q::size()
This commit is contained in:
		@@ -77,11 +77,11 @@ public:
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        if (tail_ > head_)
 | 
					        if (tail_ > head_)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
           return (tail_ - head_) % max_items_;
 | 
					           return tail_ - head_;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return max_items_ - (head_ - tail_ ) % max_items_;
 | 
					            return max_items_ - (head_ - tail_ );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user