diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-22 17:03:24 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-22 17:09:20 -0800 |
| commit | eb3c7f570601a6e00cbf03f0a026b3493887a534 (patch) | |
| tree | e621eb6aa4ab49bb72018d33c373b258f55922df /src/codegen/c.zig | |
| parent | c0c911bfa78ea2968cd110ad64a4ba0d70ca93e5 (diff) | |
| download | zig-eb3c7f570601a6e00cbf03f0a026b3493887a534.tar.gz zig-eb3c7f570601a6e00cbf03f0a026b3493887a534.zip | |
zig build fmt
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 7dd2895911..5012f7e0e8 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -1990,7 +1990,7 @@ pub const DeclGen = struct { if (dest_bits <= 64 and src_bits <= 64) { const needs_cast = src_int_info == null or (toCIntBits(dest_int_info.bits) != toCIntBits(src_int_info.?.bits) or - dest_int_info.signedness != src_int_info.?.signedness); + dest_int_info.signedness != src_int_info.?.signedness); return !needs_cast and !src_is_ptr; } else return false; } @@ -2031,7 +2031,7 @@ pub const DeclGen = struct { if (dest_bits <= 64 and src_bits <= 64) { const needs_cast = src_int_info == null or (toCIntBits(dest_int_info.bits) != toCIntBits(src_int_info.?.bits) or - dest_int_info.signedness != src_int_info.?.signedness); + dest_int_info.signedness != src_int_info.?.signedness); if (needs_cast) { try w.writeByte('('); @@ -4348,7 +4348,7 @@ fn airEquality( .aligned, .array, .vector, .fwd_decl, .function => unreachable, .aggregate => |aggregate| if (aggregate.fields.len == 2 and (aggregate.fields.at(0, ctype_pool).name.index == .is_null or - aggregate.fields.at(1, ctype_pool).name.index == .is_null)) + aggregate.fields.at(1, ctype_pool).name.index == .is_null)) { try f.writeCValueMember(writer, lhs, .{ .identifier = "is_null" }); try writer.writeAll(" || "); |
