diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-14 13:23:17 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-14 13:23:17 +0000 |
| commit | 518f30e52307e12fe184c34f0da8f197b976ced5 (patch) | |
| tree | 3f5db726b8ece6f07b7c1147c56f954615048765 /src/docs_writer.cpp | |
| parent | 868aa4c14ab6c63b9b797f4a8178c73b69897711 (diff) | |
Bring `PtrMap` inline with `StringMap`
Diffstat (limited to 'src/docs_writer.cpp')
| -rw-r--r-- | src/docs_writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Entity *>(heap_allocator(), 0, w->entity_cache.entries.count); + auto entities = array_make<Entity *>(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<OdinDocScopeEntry> odin_doc_add_pkg_entries(OdinDocWrit return {}; } - auto entries = array_make<OdinDocScopeEntry>(heap_allocator(), 0, w->entity_cache.entries.count); + auto entries = array_make<OdinDocScopeEntry>(heap_allocator(), 0, w->entity_cache.count); defer (array_free(&entries)); for (auto const &element : pkg->scope->elements) { |