Merge pull request #1485 from xanatos/patch-1
Small logical error in mruset
This commit is contained in:
commit
451c3957fe
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
size_type max_size(size_type s)
|
||||
{
|
||||
if (s)
|
||||
while (queue.size() >= s)
|
||||
while (queue.size() > s)
|
||||
{
|
||||
set.erase(queue.front());
|
||||
queue.pop_front();
|
||||
|
|
Loading…
Reference in a new issue