Fix ternary

This commit is contained in:
2026-09-18 12:22:53 -05:00
parent 354fb4293d
commit 1c4f3e2428
+1
View File
@@ -1085,6 +1085,7 @@ void CodeGen::GenNode(std::vector<ByteCodeInstruction *> &instructions,
GenNode(instructions, adv.nodes[0], scope, contscope, brkscope, GenNode(instructions, adv.nodes[0], scope, contscope, brkscope,
contI, brkI); contI, brkI);
instructions.push_back(new JumpStyleInstruction(JMPC, ifIdTrue)); instructions.push_back(new JumpStyleInstruction(JMPC, ifIdTrue));
GenNode(instructions, adv.nodes[2], scope, contscope, brkscope, GenNode(instructions, adv.nodes[2], scope, contscope, brkscope,
contI, brkI); contI, brkI);