From e0544300fb7da9a660a55eaf25f1996af573cd43 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Feb 2019 20:01:58 +0100 Subject: Separate buffers from general allocation, but still have them in scoped allocator --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.c') 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; } -- cgit v1.2.3