aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-25 22:12:24 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 22:12:24 +0200
commit1dfbe97b0a639c91d7727acc443ee2a9c2057920 (patch)
treebf322304531cf56f919c79471b04cdcca0b4e04f /src/parser.c
parent53d74e58f46ec54b8d9b147876275532d02d97ed (diff)
Fix thread pool task count not increasing, incorrect ParserFileScopeReference
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index d0b3c0a..e622b5f 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -1084,7 +1084,8 @@ void parser_queue_file(Parser *self, BufferView path, ParserFileScopeReference *
BufferView import_path_canonical = create_buffer_view(file_scope->canonical_path.data, file_scope->canonical_path.size);
if(hash_map_get(&self->imports_by_name, import_path_canonical, &parser_file_scope_index)) {
- *parser_file_scope = buffer_get(&self->imports, parser_file_scope_index, sizeof(ParserFileScopeReference*));
+ ParserFileScopeReference **file_sc = buffer_get(&self->imports, parser_file_scope_index, sizeof(ParserFileScopeReference*));
+ am_memcpy(*parser_file_scope, file_sc, sizeof(ParserFileScopeReference*));
return;
}