Skip to content

Commit

Permalink
Merge pull request #245 from boostorg/develop
Browse files Browse the repository at this point in the history
Suppressing -Wsign-conversion warnings
  • Loading branch information
olk authored Nov 8, 2023
2 parents 51ba6ff + 0bf820b commit e9c3e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/posix/stack_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace {

std::size_t pagesize() BOOST_NOEXCEPT_OR_NOTHROW {
// conform to POSIX.1-2001
return ::sysconf( _SC_PAGESIZE);
return static_cast<std::size_t>(::sysconf( _SC_PAGESIZE));
}

rlim_t stacksize_limit_() BOOST_NOEXCEPT_OR_NOTHROW {
Expand Down Expand Up @@ -77,7 +77,7 @@ stack_traits::default_size() BOOST_NOEXCEPT_OR_NOTHROW {

std::size_t
stack_traits::minimum_size() BOOST_NOEXCEPT_OR_NOTHROW {
return MINSIGSTKSZ;
return static_cast<std::size_t>(MINSIGSTKSZ);
}

std::size_t
Expand Down

0 comments on commit e9c3e56

Please sign in to comment.