From 121f9e21cd9e87aef50777eada732e8d05a987f3 Mon Sep 17 00:00:00 2001 From: Joseph Klix Date: Wed, 14 Aug 2024 14:30:56 -0700 Subject: [PATCH] fix size_t to long conversion warning as error (#3078) --- .../source/smithy/client/AwsSmithyClientBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp b/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp index 237f46b8c37..916539d9d83 100644 --- a/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp +++ b/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp @@ -386,7 +386,7 @@ void AwsSmithyClientBase::HandleAsyncReply(std::shared_ptr( [&]() -> long { - return m_clientConfig.retryStrategy->CalculateDelayBeforeNextRetry(outcome.GetError(), pRequestCtx->m_retryCount); + return m_clientConfig.retryStrategy->CalculateDelayBeforeNextRetry(outcome.GetError(), static_cast(pRequestCtx->m_retryCount)); }, TracingUtils::SMITHY_CLIENT_SERVICE_BACKOFF_DELAY_METRIC, *m_clientConfig.telemetryProvider->getMeter(this->GetServiceClientName(), {}), @@ -400,7 +400,7 @@ void AwsSmithyClientBase::HandleAsyncReply(std::shared_ptrAdjustClockSkew(outcome, pRequestCtx->m_authSchemeOption); } - if (!retryWithCorrectRegion && !m_clientConfig.retryStrategy->ShouldRetry(outcome.GetError(), pRequestCtx->m_retryCount)) + if (!retryWithCorrectRegion && !m_clientConfig.retryStrategy->ShouldRetry(outcome.GetError(), static_cast(pRequestCtx->m_retryCount))) { break; }