mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 16:54:14 +00:00
Fix ternary
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user