diff --git a/include/boost/container/node_allocator.hpp b/include/boost/container/node_allocator.hpp index fa17645..5f22cf2 100644 --- a/include/boost/container/node_allocator.hpp +++ b/include/boost/container/node_allocator.hpp @@ -317,7 +317,7 @@ class node_allocator { std::size_t const preferred_size = prefer_in_recvd_out_size; dlmalloc_command_ret_t ret = {0 , 0}; - if((limit_size > this->max_size()) | (preferred_size > this->max_size())){ + if((limit_size > this->max_size()) || (preferred_size > this->max_size())){ return pointer(); } std::size_t l_size = limit_size*sizeof(T);