Commit 34684725aa

drew <reserveblue@protonmail.com>
2021-11-15 03:31:31
fmt
1 parent 9bf1681
Changed files (2)
src
codegen
test
behavior
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) {
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
+}