diff options
Diffstat (limited to 'boost/coroutine/windows/protected_stack_allocator.hpp')
-rw-r--r-- | boost/coroutine/windows/protected_stack_allocator.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/coroutine/windows/protected_stack_allocator.hpp b/boost/coroutine/windows/protected_stack_allocator.hpp index 293901223b..29e19babb7 100644 --- a/boost/coroutine/windows/protected_stack_allocator.hpp +++ b/boost/coroutine/windows/protected_stack_allocator.hpp @@ -46,7 +46,7 @@ struct basic_protected_stack_allocator static_cast< float >( size) / traits_type::page_size() ) ) ); BOOST_ASSERT_MSG( 2 <= pages, "at least two pages must fit into stack (one page is guard-page)"); const std::size_t size_ = pages * traits_type::page_size(); - BOOST_ASSERT( 0 < size && 0 < size_); + BOOST_ASSERT( 0 != size && 0 != size_); void * limit = ::VirtualAlloc( 0, size_, MEM_COMMIT, PAGE_READWRITE); if ( ! limit) throw std::bad_alloc(); |