mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix compiler error on clang
This commit is contained in:
+2
-2
@@ -100,12 +100,12 @@ gb_internal gb_inline void map_destroy(PtrMap<K, V> *h) {
|
|||||||
|
|
||||||
template <typename K, typename V>
|
template <typename K, typename V>
|
||||||
gb_internal void map__resize_hashes(PtrMap<K, V> *h, usize count) {
|
gb_internal void map__resize_hashes(PtrMap<K, V> *h, usize count) {
|
||||||
h->hashes_count = cast(u32)resize_array_raw(&h->hashes, string_map_allocator(), h->hashes_count, count, MAP_CACHE_LINE_SIZE);
|
h->hashes_count = cast(u32)resize_array_raw(&h->hashes, map_allocator(), h->hashes_count, count, MAP_CACHE_LINE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename K, typename V>
|
template <typename K, typename V>
|
||||||
gb_internal void map__reserve_entries(PtrMap<K, V> *h, usize capacity) {
|
gb_internal void map__reserve_entries(PtrMap<K, V> *h, usize capacity) {
|
||||||
h->entries_capacity = cast(u32)resize_array_raw(&h->entries, string_map_allocator(), h->entries_capacity, capacity, MAP_CACHE_LINE_SIZE);
|
h->entries_capacity = cast(u32)resize_array_raw(&h->entries, map_allocator(), h->entries_capacity, capacity, MAP_CACHE_LINE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user