]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix warning
authorSage Weil <sage.weil@dreamhost.com>
Tue, 8 Nov 2011 04:40:18 +0000 (20:40 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 8 Nov 2011 04:40:18 +0000 (20:40 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/rgw/rgw_rados.cc

index f67447004c03a563b9a5c3d3f3912a617f9f5d80..018fbd70fafb5501f555fbdda280bfbbedd7f50f 100644 (file)
@@ -1409,7 +1409,7 @@ int RGWRados::prepare_get_obj(void *ctx, rgw_obj& obj,
       r = -ERANGE;
       goto done_err;
     }
-    if (end >= astate->size) {
+    if (end >= (off_t)astate->size) {
       end = astate->size - 1;
     }
   }