Fix wrong allocator usage
This commit is contained in:
1 parent
4bea5dbac1
commit
6520794764
1 file changed
+1
-1
+1
-1
@@ -147,7 +147,7 @@ gb_internal void map_reserve(PtrMap<K, V> *h, isize cap) {
|
|||||||
PtrMap<K, V> new_h = {};
|
PtrMap<K, V> new_h = {};
|
||||||
new_h.count = 0;
|
new_h.count = 0;
|
||||||
new_h.capacity = cast(u32)cap;
|
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) {
|
if (h->count) {
|
||||||
for (u32 i = 0; i < h->capacity; i++) {
|
for (u32 i = 0; i < h->capacity; i++) {
|
||||||
|
|||||||
Reference in new issue
Block a user