From 56ddeab2c7d32b2cd8e1e0435d3f006d7985cbe3 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 19 Oct 2021 17:29:30 +0200 Subject: Change gc.roots to use darray.h --- src/bootstrap/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bootstrap/main.c') diff --git a/src/bootstrap/main.c b/src/bootstrap/main.c index 22332af..c2c88d6 100755 --- a/src/bootstrap/main.c +++ b/src/bootstrap/main.c @@ -108,9 +108,9 @@ process_source(const StringView *source) { }; while (has_next_token(&visitor) && peek_token(&visitor).type != TOKEN_EOF) { // Check the root node stack size before parsing - size_t root_stack_size = gc.roots.size; + size_t root_stack_size = array_size(gc.roots); Object *root = parse_tree(&visitor); - gc.roots.size = root_stack_size; + array_head(gc.roots)->size = root_stack_size; if (root == obj_err || errors_n != 0) { break; } -- cgit v1.2.1