Change != to < in ipool to get rid of erroneous clang-tidy nullptr dereference warning (#457)

This commit is contained in:
Jeremy Overesch 2021-11-03 01:04:12 -05:00 committed by GitHub
parent 4068482bd5
commit 323f8eeff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);