fixed when looping over hm's that deleted objects are iterated over
This commit is contained in:
+2
-1
@@ -15,7 +15,8 @@
|
||||
if (key_type key = nullptr); else \
|
||||
if (void* value = nullptr); else \
|
||||
for(int index = 0; index < hm->current_capacity; ++index) \
|
||||
if (!((key = hm->data[index].original) && \
|
||||
if (!((!hm->data[index].deleted) && \
|
||||
(key = hm->data[index].original) && \
|
||||
(value = hm->data[index].object))); else
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user