mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: InlineLRUCache was always filling up one short of capacity.
This commit is contained in:
parent
9e2116ff6b
commit
7198e35465
Notes:
sideshowbarker
2024-07-19 14:09:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7198e354656
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
m_entries.prepend(new_entry);
|
||||
m_map.set(key, new_entry);
|
||||
|
||||
while (size() >= capacity())
|
||||
while (size() > capacity())
|
||||
remove_last();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue