From 0bae0319b120bfa3f6d948eac51406b661e74e0c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 18 Mar 2018 20:04:42 +0800 Subject: [PATCH] bluestore: fix build on armhf where size_t != uint64_t, size_t is "long long unsigned int", and uint64_t is something different. Signed-off-by: Kefu Chai --- src/os/bluestore/BlueFS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index a28372e8bb93c..ce178099f482a 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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(len)); dout(20) << __func__ << " read buffered 0x" << std::hex << x_off << "~" << l << std::dec << " of " << *p << dendl; -- 2.39.5