From 5507f29f9ab3b6756e542f64bf6035743f479aaf Mon Sep 17 00:00:00 2001 From: ashitakasam <694240887@qq.com> Date: Thu, 29 Mar 2018 08:30:13 +0800 Subject: [PATCH] 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> --- src/rgw/rgw_civetweb.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5