| author | |
| committer | |
| log | 61bf43d790d0f56f9c030afd8ec761a0f043a8a5 |
| tree | 499e967674f184bce295c39065fc725ba9033679 |
| parent | da939b032e90795c25f23efa68a9a1c50397fb48 |
1 files changed, 1 insertions(+), 0 deletions(-)
src/codegen/c.zig+1| ... | ... | @@ -3180,6 +3180,7 @@ fn airSwitchBr(f: *Function, inst: Air.Inst.Index) !CValue { |
| 3180 | 3180 | const writer = f.object.writer(); |
| 3181 | 3181 | |
| 3182 | 3182 | try writer.writeAll("switch ("); |
| 3183 | if (condition_ty.tag() == .bool) try writer.writeAll("(int)"); | |
| 3183 | 3184 | try f.writeCValue(writer, condition); |
| 3184 | 3185 | try writer.writeAll(") {"); |
| 3185 | 3186 | f.object.indent_writer.pushIndent(); |