Permalink
Browse files

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).
  • Loading branch information...
1 parent 4c6b210 commit 16d567194305d728ca433de4b78eb049a86aa450 xanatos committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mruset.h
View
@@ -51,7 +51,7 @@ template <typename T> class mruset
size_type max_size(size_type s)
{
if (s)
- while (queue.size() >= s)
+ while (queue.size() > s)
{
set.erase(queue.front());
queue.pop_front();

0 comments on commit 16d5671

Please sign in to comment.