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; }