From d63885a495d2314a5ef76337605a9ebeefb26218 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 25 Feb 2018 19:23:52 +0000 Subject: `array_make` --- src/map.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index a22b4c162..abc42231f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -136,13 +136,15 @@ template void multi_map_remove_all(Map *h, HashKey key); template gb_inline void map_init(Map *h, gbAllocator a, isize capacity) { - array_init(&h->hashes, a, capacity); - array_init(&h->entries, a, capacity);} + array_init(&h->hashes, a, 0, capacity); + array_init(&h->entries, a, 0, capacity); +} template gb_inline void map_destroy(Map *h) { array_free(&h->entries); - array_free(&h->hashes);} + array_free(&h->hashes); +} template gb_internal isize map__add_entry(Map *h, HashKey key) { -- cgit v1.2.3