From de9a4b516465201c8803ae2a2181c9532be65339 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 13 May 2018 16:10:02 +0100 Subject: Disable pointer arithmetic --- src/types.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/types.cpp') 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) { -- cgit v1.2.3