Unify MapFindResult types

This commit is contained in:
gingerBill
2021-11-05 17:24:19 +00:00
parent 0af69f8cda
commit 26e3daf5ad
5 changed files with 107 additions and 140 deletions

View File

@@ -29,11 +29,11 @@ struct PtrMap {
u32 ptr_map_hash_key(void const *key) {
// TODO(bill): Improve ptr_map_hash_key
return gb_fnv32a(&key, gb_size_of(key));
return fnv32a(&key, gb_size_of(key));
}
u32 ptr_map_hash_key(uintptr key) {
// TODO(bill): Improve ptr_map_hash_key
return gb_fnv32a(&key, gb_size_of(key));
return fnv32a(&key, gb_size_of(key));
}
template <typename K, typename V> void map_init (PtrMap<K, V> *h, gbAllocator a, isize capacity = 16);