From 1dfbe97b0a639c91d7727acc443ee2a9c2057920 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 25 Jul 2020 22:12:24 +0200 Subject: Fix thread pool task count not increasing, incorrect ParserFileScopeReference --- src/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/parser.c') 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; } -- cgit v1.2.3-70-g09d2