aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-25 16:55:11 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 16:55:11 +0200
commit53d74e58f46ec54b8d9b147876275532d02d97ed (patch)
tree2493168b4b66d1fc19ceccde67751806324f742a /src
parent759b520967ae3464b2281c6b45fa3d1e06ce8bba (diff)
Fix incorrect alloc size of ParserFileScopeReference
Diffstat (limited to 'src')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 204e391..d0b3c0a 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -1096,7 +1096,7 @@ void parser_queue_file(Parser *self, BufferView path, ParserFileScopeReference *
throw(PARSER_ERR);
}
- throw_if_error(arena_allocator_alloc(self->allocator, sizeof(ParserFileScopeReference*), (void**)parser_file_scope));
+ throw_if_error(arena_allocator_alloc(self->allocator, sizeof(ParserFileScopeReference), (void**)parser_file_scope));
(*parser_file_scope)->file_scope_ref = file_scope;
(*parser_file_scope)->import_index = num_imports;
throw_if_error(buffer_append(&self->imports, parser_file_scope, sizeof(ParserFileScopeReference*)));