From d6af70056a37a1d354ec73bed8a00547979c5784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 21:55:49 +0500 Subject: [PATCH] Fix if statements --- src/compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile.c b/src/compile.c index 5e6edfc..a07b015 100644 --- a/src/compile.c +++ b/src/compile.c @@ -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)); }