]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/op: kill compiling warning 9499/head
authorYan Jun <yan.jun8@zte.com.cn>
Sat, 4 Jun 2016 12:08:11 +0000 (20:08 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Sat, 4 Jun 2016 12:36:48 +0000 (20:36 +0800)
rgw/rgw_op.cc: In member function 'virtual int RGWCreateBucket::verify_permission()':
rgw/rgw_op.cc:1810:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (buckets.count() >= s->user->max_buckets) {

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_op.cc

index 61983fd4a65464487116ecbd729dd0804c662de6..5bc7cb43fa051a3fd9a152a74d14202b13fafaf5 100644 (file)
@@ -1807,7 +1807,7 @@ int RGWCreateBucket::verify_permission()
     if (op_ret < 0)
       return op_ret;
 
-    if (buckets.count() >= s->user->max_buckets) {
+    if ((int)buckets.count() >= s->user->max_buckets) {
       return -ERR_TOO_MANY_BUCKETS;
     }
   }