From 4e4d2afef2eca800e971affdcc4ff13e8116e415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 1 Oct 2022 23:30:05 +0200 Subject: [PATCH] Remove "bitwise OR in bool" warning --- include/boost/container/node_allocator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);