Fix hashmap collisions sometimes hanging deletion

This commit is contained in:
ISSOtm committed 2020-05-03 19:13:12 +02:00
1 parent c135e2c6a0
commit 781a65ee49
4 files changed
+50

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ bool hash_RemoveElement(HashMap map, char const *key)
*ptr = next;
return true;
}
ptr = &(*ptr)->next;
}
return false;
}