Skip to content

Commit

Permalink
Apply clang-format 18
Browse files Browse the repository at this point in the history
Summary: Previously this code conformed from clang-format 12.

Reviewed By: igorsugak

Differential Revision: D56065247

fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
  • Loading branch information
zertosh authored and facebook-github-bot committed Apr 14, 2024
1 parent 0c98f9c commit 6355127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchdata/csrc/pybind/S3Handler/S3Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ void S3Handler::S3Read(const std::string& file_url, std::string* result) {
uint64_t offset = 0;
uint64_t result_size = 0;
uint64_t file_size = GetFileSize(bucket, object);
size_t part_count =
(std::
max)(static_cast<size_t>((file_size + buffer_size_ - 1) / buffer_size_), static_cast<size_t>(1));
size_t part_count = (std::max)(
static_cast<size_t>((file_size + buffer_size_ - 1) / buffer_size_),
static_cast<size_t>(1));
result->resize(file_size);

for (int i = 0; i < part_count; i++) {
Expand Down

0 comments on commit 6355127

Please sign in to comment.