aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/projectstore/projectstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp
index a970a0380..fb1385266 100644
--- a/src/zenserver/projectstore/projectstore.cpp
+++ b/src/zenserver/projectstore/projectstore.cpp
@@ -2067,7 +2067,7 @@ ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Hand
std::span<OplogEntryAddress> EntrySpan = Entries;
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);
+ int32_t End = std::clamp<uint32_t>(EntryPaging.Start + EntryPaging.Count, 0, Size);
EntrySpan = EntrySpan.subspan(Start, End - Start);
m_Storage->ReplayLogEntries(EntrySpan, [&](CbObjectView Op) { Handler(Op); });