aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 55e569742..1506640b5 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1785,8 +1785,7 @@ struct TypePath {
void type_path_init(TypePath *tp) {
- // TODO(bill): Use an allocator that uses a backing array if it can and then use alternative allocator when exhausted
- array_init(&tp->path, heap_allocator());
+ tp->path.allocator = heap_allocator();
}
void type_path_free(TypePath *tp) {