Zig 0.15: zig build test

This commit is contained in:
Mitchell Hashimoto
2025-10-01 13:10:40 -07:00
parent 3770f97608
commit cb295b84a0
66 changed files with 1264 additions and 1144 deletions

View File

@@ -115,9 +115,10 @@ pub fn xtgettcapMap(comptime self: Source) std.StaticStringMap([]const u8) {
},
.numeric => |v| numeric: {
var buf: [10]u8 = undefined;
const num_len = std.fmt.formatIntBuf(&buf, v, 10, .upper, .{});
var writer: std.Io.Writer = .fixed(&buf);
writer.printInt(v, 10, .upper, .{}) catch unreachable;
const final = buf;
break :numeric final[0..num_len];
break :numeric final[0..writer.end];
},
},
};