rgw: fix warning

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-11-07 20:40:18 -08:00
parent 2836104a24
commit 40843eb36c

View 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;
}
}