diff options
Diffstat (limited to 'src/bootstrap/main.c')
-rwxr-xr-x | src/bootstrap/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
108 | }; | 108 | }; |
109 | while (has_next_token(&visitor) && peek_token(&visitor).type != TOKEN_EOF) { | 109 | while (has_next_token(&visitor) && peek_token(&visitor).type != TOKEN_EOF) { |
110 | // Check the root node stack size before parsing | 110 | // Check the root node stack size before parsing |
111 | size_t root_stack_size = gc.roots.size; | 111 | size_t root_stack_size = array_size(gc.roots); |
112 | Object *root = parse_tree(&visitor); | 112 | Object *root = parse_tree(&visitor); |
113 | gc.roots.size = root_stack_size; | 113 | array_head(gc.roots)->size = root_stack_size; |
114 | if (root == obj_err || errors_n != 0) { | 114 | if (root == obj_err || errors_n != 0) { |
115 | break; | 115 | break; |
116 | } | 116 | } |