diff --git a/lib/std/fmt/format_float.zig b/lib/std/fmt/format_float.zig index d0ae7624e4c5bbb82bd5d38f98a47465d3d15633..b7b08281a7f264f4b15fda33ae531a9e7fa99f32 100644 --- a/lib/std/fmt/format_float.zig +++ b/lib/std/fmt/format_float.zig @@ -1513,6 +1513,8 @@ const FLOAT128_POW5_INV_ERRORS: [154]u64 = .{ // zig fmt: on +const builtin = @import("builtin"); + fn check(comptime T: type, value: T, comptime expected: []const u8) !void { const I = @Type(.{ .Int = .{ .signedness = .unsigned, .bits = @bitSizeOf(T) } }); @@ -1521,6 +1523,8 @@ fn check(comptime T: type, value: T, comptime expected: []const u8) !void { const s = try formatFloat(&buf, value, .{}); try std.testing.expectEqualStrings(expected, s); + if (T == f80 and builtin.target.os.tag == .windows and builtin.target.cpu.arch == .x86_64) return; + const o = try std.fmt.parseFloat(T, s); const o_bits: I = @bitCast(o);