From 2cd25a489a55757fda18bc1a9f86e9a97c071fc6 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 11 Aug 2024 16:55:40 +0200 Subject: [PATCH] Fix of global state init. --- src/compiler/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index 2911f8cba..d713ab3de 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -41,7 +41,7 @@ void compiler_init(BuildOptions *build_options) INFO_LOG("Version: %s", COMPILER_VERSION); - compiler = (CompilerState) { .context.in_panic_mode = false }; + compiler.context = (GlobalContext) { .in_panic_mode = false }; // Skip library detection. //compiler.lib_dir = find_lib_dir(); //DEBUG_LOG("Found std library: %s", compiler.lib_dir);