From: Igor Fedotov Date: Fri, 14 Oct 2016 12:33:15 +0000 (+0000) Subject: os/blustore: fix compile warning X-Git-Tag: v11.1.0~642^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11482%2Fhead;p=ceph.git os/blustore: fix compile warning Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 50dd2343fa57..c9a0a1a2d645 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -636,7 +636,7 @@ public: } int s = seek_shard(offset); assert(s >= 0); - if (s == shards.size() - 1) { + if (s == (int)shards.size() - 1) { return false; // last shard } if (offset + length <= shards[s+1].offset) {