]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix compilation error on i386
authorOrit Wasserman <owasserm@redhat.com>
Tue, 17 Nov 2015 13:10:33 +0000 (14:10 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:35 +0000 (16:13 -0800)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_rest_client.cc

index 9f54deeece237f35e0d44c695f3d56ff463876d6..5a1bf9be45d5c1ad144125fc5b112d656fa00d0b 100644 (file)
@@ -713,7 +713,7 @@ int RGWRESTStreamRWRequest::send_data(void *ptr, size_t len)
     return 0;
   }
 
-  uint64_t send_size = min(len, outbl.length() - write_ofs);
+  uint64_t send_size = min(len, (size_t)(outbl.length() - write_ofs));
   if (send_size > 0) {
     memcpy(ptr, outbl.c_str() + write_ofs, send_size);
     write_ofs += send_size;