aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamcache.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-03 13:16:35 +0100
committerMartin Ridgers <[email protected]>2021-11-03 13:16:35 +0100
commitc32504578c67f5edf0faf4a458750f67ae53ab3a (patch)
treea5f28489f45b5c1b6d0a4e71d01a82fe47327816 /zenserver/upstream/upstreamcache.cpp
parent__FILE__ can be relative and thus may not exist from the CWD (diff)
downloadzen-c32504578c67f5edf0faf4a458750f67ae53ab3a.tar.xz
zen-c32504578c67f5edf0faf4a458750f67ae53ab3a.zip
Type consistency around signed/unsigned comparison
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
-rw-r--r--zenserver/upstream/upstreamcache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp
index c0cd858b6..a260cb40d 100644
--- a/zenserver/upstream/upstreamcache.cpp
+++ b/zenserver/upstream/upstreamcache.cpp
@@ -178,7 +178,7 @@ namespace detail {
using namespace fmt::literals;
ZEN_ASSERT(CacheRecord.PayloadIds.size() == Payloads.size());
- const size_t MaxAttempts = 3;
+ const int32_t MaxAttempts = 3;
try
{
@@ -223,7 +223,7 @@ namespace detail {
const size_t Idx = std::distance(std::begin(CacheRecord.PayloadIds), It);
CloudCacheResult BlobResult;
- for (size_t Attempt = 0; Attempt < MaxAttempts && !BlobResult.Success; Attempt++)
+ for (int32_t Attempt = 0; Attempt < MaxAttempts && !BlobResult.Success; Attempt++)
{
BlobResult = Session.PutCompressedBlob(CacheRecord.PayloadIds[Idx], Payloads[Idx]);
}
@@ -479,7 +479,7 @@ namespace detail {
std::span<IoBuffer const> Payloads) override
{
ZEN_ASSERT(CacheRecord.PayloadIds.size() == Payloads.size());
- const uint32_t MaxAttempts = 3;
+ const int32_t MaxAttempts = 3;
try
{