Skip to content

Commit a3c93e1

Browse files
committed
std.Target.Query: fix regression with windows os version range
somebody left a landmine here without even a comment to warn about it
1 parent e1e5dfe commit a3c93e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/std/Target/Query.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ pub fn zigTriple(self: Query, allocator: Allocator) Allocator.Error![]u8 {
460460
try formatVersion(v, result.writer());
461461
},
462462
.windows => |v| {
463-
try result.writer().print("...{s}", .{v});
463+
// This is counting on a custom format() function defined on `WindowsVersion`
464+
// to add a prefix '.' and make there be a total of three dots.
465+
try result.writer().print("..{s}", .{v});
464466
},
465467
}
466468
}

0 commit comments

Comments
 (0)