From 1c4f3e2428bda125e91831265c954444105923c6 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Fri, 18 Sep 2026 12:22:53 -0500 Subject: [PATCH] Fix ternary --- src/compiler/codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/codegen.cpp b/src/compiler/codegen.cpp index b2804f8..518fc6a 100644 --- a/src/compiler/codegen.cpp +++ b/src/compiler/codegen.cpp @@ -1085,6 +1085,7 @@ void CodeGen::GenNode(std::vector &instructions, GenNode(instructions, adv.nodes[0], scope, contscope, brkscope, contI, brkI); instructions.push_back(new JumpStyleInstruction(JMPC, ifIdTrue)); + GenNode(instructions, adv.nodes[2], scope, contscope, brkscope, contI, brkI);