Skip to content

Commit

Permalink
Fixed a small bug in If processing logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Jan 5, 2025
1 parent 38f2c0b commit 2620b2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prototype/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4228,6 +4228,8 @@ void BytecodeGenerator::HandleStmt(StmtNode* stmt,
} else {
size_t false_name_index = global_memory_.Add(0x01, 3, "$0");
size_t false_name_ptr_index = global_memory_.Add(0x06, 8);
code.push_back(Bytecode(_AQVM_OPERATOR_PTR, false_name_index,
false_name_ptr_index));
code.push_back(Bytecode(_AQVM_OPERATOR_IF, condition_index,
true_name_ptr_index, false_name_ptr_index));
}
Expand Down

0 comments on commit 2620b2f

Please sign in to comment.