Skip to content

Commit

Permalink
Emit true and false instead of 1 and 0 for BoolLiteral dbprint. (#4741)
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy authored Jun 23, 2024
1 parent 32e7396 commit 3b03d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir/dbprint-expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void IR::Apply::dbprint(std::ostream &out) const {
}

void IR::BoolLiteral::dbprint(std::ostream &out) const {
out << value;
out << (value ? "true" : "false");
if (getprec(out) == 0) out << ';';
}

Expand Down

0 comments on commit 3b03d26

Please sign in to comment.