mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Merge pull request #40582 from a16bitsysop/32bit
src/common/buffer.cc: change cast to static_cast Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
9f94d27752
@ -2277,7 +2277,7 @@ MEMPOOL_DEFINE_OBJECT_FACTORY(buffer::raw_static, buffer_raw_static,
|
||||
|
||||
void ceph::buffer::list::page_aligned_appender::_refill(size_t len) {
|
||||
const size_t alloc = \
|
||||
std::max((size_t)min_alloc, (len + CEPH_PAGE_SIZE - 1) & CEPH_PAGE_MASK);
|
||||
std::max(static_cast<size_t>(min_alloc), static_cast<size_t>((len + CEPH_PAGE_SIZE - 1) & CEPH_PAGE_MASK));
|
||||
auto new_back = \
|
||||
ptr_node::create(buffer::create_page_aligned(alloc));
|
||||
new_back->set_length(0); // unused, so far.
|
||||
|
Loading…
Reference in New Issue
Block a user