Fix if statements
This commit is contained in:
+2
-2
@@ -427,7 +427,7 @@ char* compile(tSyntaxElement* syntaxtree) {
|
||||
|
||||
compile_exit_tag(&result);
|
||||
|
||||
string_append_free(&result,compile(token->next->next));
|
||||
string_append_free(&result,compile(token->next->next->content.syntax));
|
||||
|
||||
if (token->next->next->next != NULL) {
|
||||
|
||||
@@ -435,7 +435,7 @@ char* compile(tSyntaxElement* syntaxtree) {
|
||||
string_append(&result, "else");
|
||||
compile_exit_tag(&result);
|
||||
|
||||
string_append_free(&result,compile(token->next->next->next));
|
||||
string_append_free(&result,compile(token->next->next->next->content.syntax));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user