Browse Source

If (for example) the new max_size must be 5 then at the end the queue.size() must be <= 5, so the exit condition must be <=, so the continuing condition must be > (and not >= as it was).

0.8
xanatos 12 years ago
parent
commit
16d5671943
  1. 2
      src/mruset.h

2
src/mruset.h

@ -51,7 +51,7 @@ public: @@ -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…
Cancel
Save