From 105826c3e349eff6ddcd45dec4af81f9a3279f42 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 23 Sep 2021 12:10:56 +0200 Subject: Fixed dumb bug in CasChunkSet::IterateChunks which would cause infinite loop --- zenstore/CAS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenstore/CAS.cpp') diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp index eaf72cb41..1db2b50bf 100644 --- a/zenstore/CAS.cpp +++ b/zenstore/CAS.cpp @@ -50,7 +50,7 @@ CasChunkSet::RemoveChunksIf(std::function&& P void CasChunkSet::IterateChunks(std::function&& Callback) { - for (auto It = begin(m_ChunkSet), ItEnd = end(m_ChunkSet); It != ItEnd;) + for (auto It = begin(m_ChunkSet), ItEnd = end(m_ChunkSet); It != ItEnd; ++It) { Callback(*It); } -- cgit v1.2.3