]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix unsigned/signed comparision warning
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2016 10:14:41 +0000 (02:14 -0800)
committerKefu Chai <kchai@redhat.com>
Sat, 30 Jan 2016 17:01:28 +0000 (01:01 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueFS.cc

index 1bad6a2c68fc7341ccb4ed7e8a3dcce1a185d86b..13555c9197ecb44a871c941dcf0c8b9ab772010b 100644 (file)
@@ -728,7 +728,7 @@ int BlueFS::_read(
     left = buf->get_buf_remaining(off);
     dout(20) << __func__ << " left " << left << " len " << len << dendl;
 
-    int r = MIN((int)len, left);
+    int r = MIN(len, left);
     if (outbl) {
       bufferlist t;
       t.substr_of(buf->bl, off - buf->bl_off, r);