From a76ba1b33e397638c4209dd77e6073e423ac07a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 22 Apr 2019 02:34:30 +0200 Subject: Start on bytecode. Commit before os switch --- src/ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index a9f9be2..680eb50 100644 --- a/src/ast.c +++ b/src/ast.c @@ -171,7 +171,7 @@ void scope_resolve(Scope *self, AstCompilerContext *context) { Ast **ast; Ast **ast_end; - ast = buffer_start(&self->ast_objects); + ast = buffer_begin(&self->ast_objects); ast_end = buffer_end(&self->ast_objects); context->scope = self; for(; ast != ast_end; ++ast) { @@ -339,7 +339,7 @@ static void funccall_resolve(Ast *self, AstCompilerContext *context) { throw(AST_ERR); } - ast = buffer_start(&func_call->args); + ast = buffer_begin(&func_call->args); ast_end = buffer_end(&func_call->args); for(; ast != ast_end; ++ast) { ast_resolve(*ast, context); -- cgit v1.2.3-70-g09d2