From: ashitakasam <694240887@qq.com> Date: Thu, 29 Mar 2018 00:30:13 +0000 (+0800) Subject: rgw: comparison between signed and unsigned integer expressions X-Git-Tag: v13.1.0~447^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5507f29f9ab3b6756e542f64bf6035743f479aaf;p=ceph.git rgw: comparison between signed and unsigned integer expressions Fixes: Change the data type of 'c' from int to size_t in src/rgw/rgw_civetweb.cc RGWCivetWeb::read_data Signed-off-by: ashitakasam <694240887@qq.com> --- diff --git a/src/rgw/rgw_civetweb.cc b/src/rgw/rgw_civetweb.cc index 2140e363285cc..c28fac47652ef 100644 --- a/src/rgw/rgw_civetweb.cc +++ b/src/rgw/rgw_civetweb.cc @@ -51,7 +51,8 @@ RGWCivetWeb::RGWCivetWeb(mg_connection* const conn) size_t RGWCivetWeb::read_data(char *buf, size_t len) { - int c, ret; + size_t c; + int ret; if (got_eof_on_read) { return 0; }