From 518f30e52307e12fe184c34f0da8f197b976ced5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 14 Jan 2023 13:23:17 +0000 Subject: Bring `PtrMap` inline with `StringMap` --- src/docs_writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/docs_writer.cpp') diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index ea0946153..cb7fa0e1e 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -913,7 +913,7 @@ gb_internal OdinDocEntityIndex odin_doc_add_entity(OdinDocWriter *w, Entity *e) gb_internal void odin_doc_update_entities(OdinDocWriter *w) { { // NOTE(bill): Double pass, just in case entities are created on odin_doc_type - auto entities = array_make(heap_allocator(), 0, w->entity_cache.entries.count); + auto entities = array_make(heap_allocator(), 0, w->entity_cache.count); defer (array_free(&entities)); for (auto const &entry : w->entity_cache) { @@ -973,7 +973,7 @@ gb_internal OdinDocArray odin_doc_add_pkg_entries(OdinDocWrit return {}; } - auto entries = array_make(heap_allocator(), 0, w->entity_cache.entries.count); + auto entries = array_make(heap_allocator(), 0, w->entity_cache.count); defer (array_free(&entries)); for (auto const &element : pkg->scope->elements) { -- cgit v1.2.3