From: Kefu Chai Date: Thu, 28 Jan 2016 10:14:41 +0000 (-0800) Subject: os/bluestore: fix unsigned/signed comparision warning X-Git-Tag: v10.0.4~97^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=72d1984dd452b00757f0f3e430d15490c48eafff;p=ceph.git os/bluestore: fix unsigned/signed comparision warning Signed-off-by: Kefu Chai --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 1bad6a2c68fc..13555c9197ec 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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);