From 49cbd4dcca037336ad5e2e4fcb1e3cc613b46cce Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 21 Dec 2021 18:06:40 +0330 Subject: [PATCH] AK: Make DisjointChunks not query size() when there are no chunks --- AK/DisjointChunks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& {