aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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*)));