Skip to content

Commit

Permalink
fix warning: comparison of unsigned expression < 0
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin committed Aug 31, 2018
1 parent d1284b0 commit e54f7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/thread/pthread/thread_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace boost
#else
std::size_t page_size = ::sysconf( _SC_PAGESIZE);
#endif
#ifdef PTHREAD_STACK_MIN
#if PTHREAD_STACK_MIN > 0
if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
#endif
size = ((size+page_size-1)/page_size)*page_size;
Expand Down

0 comments on commit e54f7e3

Please sign in to comment.