Skip to content

Commit

Permalink
Bugfix: narrowing conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-topnotch committed Mar 12, 2024
1 parent 8f870ff commit aa0f183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ minio::error::Error minio::utils::CalcPartInfo(long object_size,
}

if (object_size >= 0) {
if (object_size > static_cast<long>(kMaxObjectSize)) {
if (static_cast<unsigned long long>(object_size) > kMaxObjectSize) {
return error::Error("object size " + std::to_string(object_size) +
" is not supported; maximum allowed 5TiB");
}
Expand Down

0 comments on commit aa0f183

Please sign in to comment.