diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2022-03-15 10:20:24 +0000 |
|---|---|---|
| committer | Daniele Cocca <daniele.cocca@gmail.com> | 2022-03-15 19:00:16 +0000 |
| commit | 79f74943b525daa06f2b2c3d460da97a88aee5bb (patch) | |
| tree | e90bcee0a81a20423c0906bc63ee299e8623607e /src/codegen | |
| parent | 9b5737b5a6c6dab61917d17ce9eec35e5978942b (diff) | |
| download | zig-79f74943b525daa06f2b2c3d460da97a88aee5bb.tar.gz zig-79f74943b525daa06f2b2c3d460da97a88aee5bb.zip | |
CBE: fix output of airMinMax()
This was trying to output a ternary operator, but the output was broken
by the lack of a '?'.
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index c63cb27529..05ceb30379 100644 --- a/src/codegen/c.zig +++ b/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); |
