diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2020-02-10 23:08:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 23:08:33 -0500 |
| commit | e624c862894ec50998aafb3026d4ed45208acd6d (patch) | |
| tree | a01d54c8d5ba3178eaed1fa8d0ef9c081d95d9f2 /src/tokenizer.cpp | |
| parent | 26183660558c43133d862912c602e316f43698c7 (diff) | |
| parent | edb210905dcbe666fa5222bceacd2e5bdb16bb89 (diff) | |
| download | zig-e624c862894ec50998aafb3026d4ed45208acd6d.tar.gz zig-e624c862894ec50998aafb3026d4ed45208acd6d.zip | |
Merge pull request #4389 from mikdusan/stage1-mem
stage1: memory/report overhaul
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 2aae048cdf..d3390aef3c 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -397,10 +397,10 @@ static void invalid_char_error(Tokenize *t, uint8_t c) { void tokenize(Buf *buf, Tokenization *out) { Tokenize t = {0}; t.out = out; - t.tokens = out->tokens = allocate<ZigList<Token>>(1); + t.tokens = out->tokens = heap::c_allocator.create<ZigList<Token>>(); t.buf = buf; - out->line_offsets = allocate<ZigList<size_t>>(1); + out->line_offsets = heap::c_allocator.create<ZigList<size_t>>(); out->line_offsets->append(0); // Skip the UTF-8 BOM if present |
