diff --git a/AK/DisjointChunks.h b/AK/DisjointChunks.h index 81dd96407d..e60a472aa5 100644 --- a/AK/DisjointChunks.h +++ b/AK/DisjointChunks.h @@ -251,7 +251,7 @@ public: return sum; } - bool is_empty() const { return size() == 0; } + bool is_empty() const { return m_chunks.size() == 0 || size() == 0; } DisjointSpans spans() const& {