aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-02-24 20:01:58 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commite0544300fb7da9a660a55eaf25f1996af573cd43 (patch)
treed6e375f78f10a0c9ad16d984aa218234a5d078e1 /src/parser.c
parent204a1cc2b01ed3f18cb3e33bd6aa756d1f99dda8 (diff)
Separate buffers from general allocation, but still have them in scoped allocator
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 6a1c796..78b0018 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -8,7 +8,7 @@ static CHECK_RESULT int parser_parse_body(Parser *self, Ast *ast);
int parser_init(Parser *self) {
return_if_error(scoped_allocator_init(&self->allocator));
- return_if_error(buffer_init(&self->ast_objects, &self->allocator, sizeof(Ast) * 8));
+ return_if_error(buffer_init(&self->ast_objects, &self->allocator));
return PARSER_OK;
}