AK: InlineLRUCache was always filling up one short of capacity.

This commit is contained in:
Andreas Kling 2019-05-14 15:33:21 +02:00
parent 9e2116ff6b
commit 7198e35465
Notes: sideshowbarker 2024-07-19 14:09:08 +09:00

View file

@ -46,7 +46,7 @@ public:
m_entries.prepend(new_entry);
m_map.set(key, new_entry);
while (size() >= capacity())
while (size() > capacity())
remove_last();
}