1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/ceph/44-staticcast.patch
Duncan Bellamy 6d5b2dd066 community/ceph: upgrade to 16.2.0
* install mgr dashboard node modules on install as too large
* drop 32bit for the minute
* enable for s390x
2021-04-05 20:04:56 +00:00

13 lines
549 B
Diff

submitted as https://github.com/ceph/ceph/pull/40582
--- a/src/common/buffer.cc
+++ b/src/common/buffer.cc
@@ -2268,7 +2268,7 @@
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.