mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +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: 7198e35465
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…
Add table
Add a link
Reference in a new issue