From 7198e35465600181de3e6a16fe26a6327f18f42b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 14 May 2019 15:33:21 +0200 Subject: [PATCH] AK: InlineLRUCache was always filling up one short of capacity. --- AK/InlineLRUCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/InlineLRUCache.h b/AK/InlineLRUCache.h index bc3375808b..9fd148c73c 100644 --- a/AK/InlineLRUCache.h +++ b/AK/InlineLRUCache.h @@ -46,7 +46,7 @@ public: m_entries.prepend(new_entry); m_map.set(key, new_entry); - while (size() >= capacity()) + while (size() > capacity()) remove_last(); }