From 34684725aa728e392368a5743e1a2405328d5788 Mon Sep 17 00:00:00 2001 From: drew Date: Sun, 14 Nov 2021 18:31:31 -0800 Subject: [PATCH] fmt --- src/codegen/c.zig | 6 +++--- test/behavior/int128.zig | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 44271d065754d95e2b2d94caa41acd220f2febcb..7dabf3bf9e0d5b3b2170fbe145f722fef6774555 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) { diff --git a/test/behavior/int128.zig b/test/behavior/int128.zig index 444096ff187f84ce0be67a16accaee9be41a3216..76b12ef1d92cb10341ea4a1a87e2c0a21d86d990 100644 --- a/test/behavior/int128.zig +++ b/test/behavior/int128.zig @@ -40,4 +40,4 @@ test "int128" { test "truncate int128" { var buff: u128 = maxInt(u128); try expect(@truncate(u64, buff) == maxInt(u64)); -} \ No newline at end of file +} -- 2.54.0