Skip to content

Commit

Permalink
Merge pull request ceph#40582 from a16bitsysop/32bit
Browse files Browse the repository at this point in the history
src/common/buffer.cc: change cast to static_cast

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Apr 6, 2021
2 parents 8c37039 + b45a6e9 commit 9f94d27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/buffer.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
Expand All @@ -7,9 +7,9 @@
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*
*
*/

#include <atomic>
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9f94d27

Please sign in to comment.