Skip to content

Commit

Permalink
AK: InlineLRUCache was always filling up one short of capacity.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed May 14, 2019
1 parent 9e2116f commit 7198e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AK/InlineLRUCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class InlineLRUCache {
m_entries.prepend(new_entry);
m_map.set(key, new_entry);

while (size() >= capacity())
while (size() > capacity())
remove_last();
}

Expand Down

0 comments on commit 7198e35

Please sign in to comment.