Skip to content

Commit 1f42910

Browse files
committed
resolve compiliation warnings
1 parent 9bd00b2 commit 1f42910

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpp/src/arrow/filesystem/s3fs.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ class AwsRetryStrategy : public S3RetryStrategy {
233233
Aws::Client::AWSError<Aws::Client::CoreErrors> error = DetailToError(detail);
234234
return std::visit(
235235
[&](const auto& strategy) {
236-
return strategy->ShouldRetry(error, attempted_retries);
236+
return strategy->ShouldRetry(
237+
error, static_cast<long>(attempted_retries)); // NOLINT: runtime/int
237238
},
238239
retry_strategy_);
239240
}
@@ -243,7 +244,8 @@ class AwsRetryStrategy : public S3RetryStrategy {
243244
Aws::Client::AWSError<Aws::Client::CoreErrors> error = DetailToError(detail);
244245
return std::visit(
245246
[&](const auto& strategy) {
246-
return strategy->CalculateDelayBeforeNextRetry(error, attempted_retries);
247+
return strategy->CalculateDelayBeforeNextRetry(
248+
error, static_cast<long>(attempted_retries)); // NOLINT: runtime/int
247249
},
248250
retry_strategy_);
249251
}

0 commit comments

Comments
 (0)