Fix if statements

This commit is contained in:
bʰedoh₂ swé 2024-06-11 21:55:49 +05:00
parent 9addce5f30
commit d6af70056a

View File

@ -427,7 +427,7 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); 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) { if (token->next->next->next != NULL) {
@ -435,7 +435,7 @@ char* compile(tSyntaxElement* syntaxtree) {
string_append(&result, "else"); string_append(&result, "else");
compile_exit_tag(&result); compile_exit_tag(&result);
string_append_free(&result,compile(token->next->next->next)); string_append_free(&result,compile(token->next->next->next->content.syntax));
} }