Merge pull request #1485 from xanatos/patch-1
Small logical error in mruset
This commit is contained in:
commit
451c3957fe
@ -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 New Issue
Block a user