diff options
Diffstat (limited to 'src/zenserver')
| -rw-r--r-- | src/zenserver/projectstore/projectstore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp index f4ad869aa..ea45aa210 100644 --- a/src/zenserver/projectstore/projectstore.cpp +++ b/src/zenserver/projectstore/projectstore.cpp @@ -2065,10 +2065,10 @@ ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Hand std::span<OplogEntryAddress> EntrySpan = Entries; if (EntryPaging != nullptr) { - int32_t Size = int32_t(Entries.size()); + int32_t Size = int32_t(Entries.size()); int32_t Start = std::clamp(EntryPaging->Start, 0, Size); - int32_t End = std::clamp(EntryPaging->Start + EntryPaging->Count, 0, Size); - EntrySpan = EntrySpan.subspan(Start, End - Start); + int32_t End = std::clamp(EntryPaging->Start + EntryPaging->Count, 0, Size); + EntrySpan = EntrySpan.subspan(Start, End - Start); } m_Storage->ReplayLogEntries(EntrySpan, [&](CbObjectView Op) { Handler(Op); }); |