Use logical OR instead of bitwise OR in check

This commit is contained in:
Ion Gaztañaga
2022-08-24 14:26:12 +02:00
parent 51c1d202cd
commit c63fc4e17f

View File

@ -352,7 +352,7 @@ class 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);