mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
AK: InlineLRUCache was always filling up one short of capacity.
This commit is contained in:
parent
9e2116ff6b
commit
7198e35465
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public:
|
||||||
m_entries.prepend(new_entry);
|
m_entries.prepend(new_entry);
|
||||||
m_map.set(key, new_entry);
|
m_map.set(key, new_entry);
|
||||||
|
|
||||||
while (size() >= capacity())
|
while (size() > capacity())
|
||||||
remove_last();
|
remove_last();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue