Skip to content

Commit

Permalink
fix size_t to long conversion warning as error (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix authored Aug 14, 2024
1 parent 777b9ce commit 121f9e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void AwsSmithyClientBase::HandleAsyncReply(std::shared_ptr<AwsSmithyClientAsyncR

long sleepMillis = TracingUtils::MakeCallWithTiming<long>(
[&]() -> long {
return m_clientConfig.retryStrategy->CalculateDelayBeforeNextRetry(outcome.GetError(), pRequestCtx->m_retryCount);
return m_clientConfig.retryStrategy->CalculateDelayBeforeNextRetry(outcome.GetError(), static_cast<long>(pRequestCtx->m_retryCount));
},
TracingUtils::SMITHY_CLIENT_SERVICE_BACKOFF_DELAY_METRIC,
*m_clientConfig.telemetryProvider->getMeter(this->GetServiceClientName(), {}),
Expand All @@ -400,7 +400,7 @@ void AwsSmithyClientBase::HandleAsyncReply(std::shared_ptr<AwsSmithyClientAsyncR
shouldSleep |= !this->AdjustClockSkew(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<long>(pRequestCtx->m_retryCount)))
{
break;
}
Expand Down

0 comments on commit 121f9e2

Please sign in to comment.