Commit 79f74943b5

Daniele Cocca <daniele.cocca@gmail.com>
2022-03-15 11:20:24
CBE: fix output of airMinMax()
This was trying to output a ternary operator, but the output was broken by the lack of a '?'.
1 parent 9b5737b
Changed files (1)
src
codegen
src/codegen/c.zig
@@ -2541,7 +2541,7 @@ fn airMinMax(f: *Function, inst: Air.Inst.Index, operator: [*:0]const u8) !CValu
     try f.writeCValue(writer, lhs);
     try writer.print("{s}", .{operator});
     try f.writeCValue(writer, rhs);
-    try writer.writeAll(") ");
+    try writer.writeAll(") ? ");
     try f.writeCValue(writer, lhs);
     try writer.writeAll(" : ");
     try f.writeCValue(writer, rhs);