Skip to content

Commit

Permalink
Suppressing -Wsign-conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
the-moisrex committed Oct 29, 2023
1 parent 033ea19 commit dcf0378
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 dcf0378

Please sign in to comment.