From 54f02f59dbe90f701266dee703d07e7a80ca0ac8 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 16 Jan 2023 11:03:24 +0000 Subject: [PATCH] Fix compiler error on clang --- src/ptr_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index 0a5c1e492..e353b2f97 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -100,12 +100,12 @@ gb_internal gb_inline void map_destroy(PtrMap *h) { template gb_internal void map__resize_hashes(PtrMap *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 gb_internal void map__reserve_entries(PtrMap *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); }