]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore: fix build on armhf 20951/head
authorKefu Chai <kchai@redhat.com>
Sun, 18 Mar 2018 12:04:42 +0000 (20:04 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 18 Mar 2018 12:04:43 +0000 (20:04 +0800)
where size_t != uint64_t, size_t is "long long unsigned int", and
uint64_t is something different.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueFS.cc

index a28372e8bb93cd8ae3ca8560d39a6f8f46c280aa..ce178099f482a09d0a93ae79f6b76a95f1bdad32 100644 (file)
@@ -1035,7 +1035,7 @@ int BlueFS::_read_random(
   while (len > 0) {
     uint64_t x_off = 0;
     auto p = h->file->fnode.seek(off, &x_off);
-    uint64_t l = std::min(p->length - x_off, len);
+    uint64_t l = std::min(p->length - x_off, static_cast<uint64_t>(len));
     dout(20) << __func__ << " read buffered 0x"
              << std::hex << x_off << "~" << l << std::dec
              << " of " << *p << dendl;