Merge branch 'main' of gitlab.aliens-lyon.fr:alucas03/c-repl into main

This commit is contained in:
ala89 2024-01-04 22:07:58 +01:00
commit b3cdc2af4f

View File

@ -361,7 +361,8 @@ AnalysisResult analyze(Node &ast, Memory &memory) {
memory.declare(function_name, type); memory.declare(function_name, type);
Function fn = { {}, memory.make_closure() }; Node empty_node = {};
Function fn = { empty_node, memory.make_closure() };
memory.update(function_name, fn); memory.update(function_name, fn);