mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
rgw: fix warning
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
2836104a24
commit
40843eb36c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user