Skip to content

Commit

Permalink
fix reverse order of vector initialization when rebuilding source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luís Möllmann committed May 16, 2017
1 parent a4dc058 commit 1ca6d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1ca6d03

Please sign in to comment.