From 1ca6d0372fb42e2527a6397a88ed6145d5ada105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20M=C3=B6llmann?= Date: Tue, 16 May 2017 12:06:59 -0300 Subject: [PATCH] fix reverse order of vector initialization when rebuilding source code. --- astree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astree.c b/astree.c index 392201b..e2b87ae 100644 --- a/astree.c +++ b/astree.c @@ -150,9 +150,9 @@ void ast_make_source(FILE* stream, struct astree* tree, int level){ break; /* Vector inicialization*/ case AST_VEC_INIT: + ast_make_source(stream, tree->children[0], level); fprintf(stream, " "); ast_make_source(stream, tree->children[1], level); - ast_make_source(stream, tree->children[0], level); break; /* Function declarition*/ case AST_FUNC: