diff options
| author | gingerBill <bill@gingerbill.org> | 2018-05-13 16:10:02 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-05-13 16:10:02 +0100 |
| commit | de9a4b516465201c8803ae2a2181c9532be65339 (patch) | |
| tree | a842a40b832d1d07e0b267170b46b0a437ff5cf1 /src/types.cpp | |
| parent | 319aca3101ca700f24e1fad5c45c3f512172fbc8 (diff) | |
Disable pointer arithmetic
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 3 |
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) { |