diff options
| author | Stefan Boberg <[email protected]> | 2021-09-23 12:10:56 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-23 12:10:56 +0200 |
| commit | 105826c3e349eff6ddcd45dec4af81f9a3279f42 (patch) | |
| tree | 7a46cf9d9a1e1d448a547526b82fe7ffc7fe06b0 /zenstore/CAS.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-105826c3e349eff6ddcd45dec4af81f9a3279f42.tar.xz zen-105826c3e349eff6ddcd45dec4af81f9a3279f42.zip | |
Fixed dumb bug in CasChunkSet::IterateChunks which would cause infinite loop
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<bool(const IoHash& CandidateHash)>&& P void CasChunkSet::IterateChunks(std::function<void(const IoHash& ChunkHash)>&& 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); } |