diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index 153b40b7e..4659fcf9b 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -237,7 +237,7 @@ gb_inline void map_clear(PtrMap *h) { #if PTR_MAP_ENABLE_MULTI_MAP template -PtrMapEntry *multi_map_find_first(PtrMap *h, HashKey const &key) { +PtrMapEntry *multi_map_find_first(PtrMap *h, K key) { isize i = map__find(h, key).entry_index; if (i == MAP_SENTINEL) { return nullptr; @@ -258,7 +258,7 @@ PtrMapEntry *multi_map_find_next(PtrMap *h, PtrMapEntry *e) { } template -isize multi_map_count(PtrMap *h, HashKey const &key) { +isize multi_map_count(PtrMap *h, K key) { isize count = 0; PtrMapEntry *e = multi_map_find_first(h, key); while (e != nullptr) { @@ -302,7 +302,7 @@ void multi_map_insert(PtrMap *h, K key, V const &value) { } template -void multi_map_remove(PtrMap *h, HashKey const &key, PtrMapEntry *e) { +void multi_map_remove(PtrMap *h, K key, PtrMapEntry *e) { MapFindResult fr = map__find_from_entry(h, e); if (fr.entry_index != MAP_SENTINEL) { map__erase(h, fr); @@ -310,7 +310,7 @@ void multi_map_remove(PtrMap *h, HashKey const &key, PtrMapEntry *e) } template -void multi_map_remove_all(PtrMap *h, HashKey const &key) { +void multi_map_remove_all(PtrMap *h, K key) { while (map_get(h, key) != nullptr) { map_remove(h, key); }