mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Change != to < in ipool to get rid of erroneous clang-tidy nullptr dereference warning (#457)
This commit is contained in:
parent
4068482bd5
commit
323f8eeff8
@ -353,7 +353,7 @@ namespace etl
|
||||
p_value = p_next;
|
||||
|
||||
++items_allocated;
|
||||
if (items_allocated != Max_Size)
|
||||
if (items_allocated < Max_Size)
|
||||
{
|
||||
// Set up the pointer to the next free item
|
||||
p_next = *reinterpret_cast<char**>(p_next);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user