]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix compilation for certain architectures
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 16:41:39 +0000 (09:41 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 19:10:14 +0000 (12:10 -0700)
Casting.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_op.cc

index 39e32047c1eefc5d68fea92353a32fb26e41efc0..0c157c561fb59e0305fc4d396263e11d821ae6ad 100644 (file)
@@ -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;