summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_op.cc')
-rw-r--r--src/rgw/rgw_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index 1ea9fb09735..32d9051c16c 100644
--- a/src/rgw/rgw_op.cc
+++ b/src/rgw/rgw_op.cc
@@ -663,7 +663,7 @@ void RGWListBuckets::execute()
RGWUserBuckets buckets;
uint64_t read_count;
if (limit > 0)
- read_count = min(limit - total_count, max_buckets);
+ read_count = min(limit - total_count, (uint64_t)max_buckets);
else
read_count = max_buckets;