Skip to content

Commit 8825137

Browse files
committed
Make sure arguments to get_rounded_size are the same type as in the rest of uses.
1 parent d5bb190 commit 8825137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/interprocess/detail/segment_manager_helper.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ struct block_header
388388

389389
template<std::size_t CharAlign>
390390
size_type name_offset() const
391-
{ return get_rounded_size(this->name_length_offset()+sizeof(name_len_t), CharAlign); }
391+
{ return get_rounded_size( size_type(this->name_length_offset()+sizeof(name_len_t))
392+
, size_type(CharAlign)); }
392393

393394
size_type name_length_offset() const
394395
{

0 commit comments

Comments
 (0)