aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authordrew <reserveblue@protonmail.com>2021-11-14 18:31:31 -0800
committerAndrew Kelley <andrew@ziglang.org>2021-11-16 16:51:31 -0700
commit34684725aa728e392368a5743e1a2405328d5788 (patch)
treeb1315a5017114fa4d2475f43c423bdc1f7adfd42 /src/codegen/c.zig
parent9bf1681990fe87a6b2e5fc644a89f1aece304579 (diff)
downloadzig-34684725aa728e392368a5743e1a2405328d5788.tar.gz
zig-34684725aa728e392368a5743e1a2405328d5788.zip
fmt
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 44271d0657..7dabf3bf9e 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -248,10 +248,10 @@ pub const DeclGen = struct {
if (is_neg) try writer.writeByte('-');
assert(high > 0);
- try writer.print("(((uint128_t)0x{x}u<<64)", .{ high });
+ try writer.print("(((uint128_t)0x{x}u<<64)", .{high});
if (low > 0)
- try writer.print("+(uint128_t)0x{x}u", .{ low });
+ try writer.print("+(uint128_t)0x{x}u", .{low});
return writer.writeByte(')');
}
@@ -306,7 +306,7 @@ pub const DeclGen = struct {
if (ty.isSignedInt())
return writer.print("{d}", .{val.toSignedInt()});
return writer.print("{d}u", .{val.toUnsignedInt()});
- }
+ },
},
.Float => {
if (ty.floatBits(dg.module.getTarget()) <= 64) {