diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-27 08:50:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-27 08:50:05 +0100 |
| commit | 652079476489b2539c77824ec2719847f28c352d (patch) | |
| tree | 724815aad41a965640b483b0e758fbcb387c75f4 /src/ptr_map.cpp | |
| parent | 4bea5dbac1aea38d33b21e2c13297b0fc96c1be9 (diff) | |
Fix wrong allocator usage
Diffstat (limited to 'src/ptr_map.cpp')
| -rw-r--r-- | src/ptr_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index 8fd627768..362e412ba 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -147,7 +147,7 @@ gb_internal void map_reserve(PtrMap<K, V> *h, isize cap) { PtrMap<K, V> new_h = {}; new_h.count = 0; new_h.capacity = cast(u32)cap; - new_h.entries = gb_alloc_array(string_map_allocator(), EntryType, new_h.capacity); + new_h.entries = gb_alloc_array(map_allocator(), EntryType, new_h.capacity); if (h->count) { for (u32 i = 0; i < h->capacity; i++) { |