aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-21 16:27:40 +0100
committergingerBill <bill@gingerbill.org>2020-05-21 16:27:40 +0100
commitd09ac8943ac38b955e9a10d22e5c2f3fba8e7eaa (patch)
treeb1c8ec516f93d0c15eef14812442bda09c3d750c /src/checker.cpp
parent8e63c943939619cb74266ff43a0cff20293d5b70 (diff)
Minor fixes to improve hash map/set performance
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index ef7d72e65..a5885705e 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -219,7 +219,7 @@ bool decl_info_has_init(DeclInfo *d) {
-Scope *create_scope(Scope *parent, gbAllocator allocator, isize init_elements_capacity=16) {
+Scope *create_scope(Scope *parent, gbAllocator allocator, isize init_elements_capacity=DEFAULT_SCOPE_CAPACITY) {
Scope *s = gb_alloc_item(allocator, Scope);
s->parent = parent;
string_map_init(&s->elements, heap_allocator(), init_elements_capacity);