Correct map_remove(PtrMap)

This commit is contained in:
gingerBill
2021-11-05 16:45:27 +00:00
parent 6be104e521
commit 924faa58b4
3 changed files with 11 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ void map__erase(PtrMap<K, V> *h, MapFindResult const &fr) {
}
template <typename K, typename V>
void map_remove(PtrMap<K, V> *h, HashKey const &key) {
void map_remove(PtrMap<K, V> *h, K key) {
MapFindResult fr = map__find(h, key);
if (fr.entry_index != MAP_SENTINEL) {
map__erase(h, fr);