Skip to content

Commit 3d3d240

Browse files
Fix build failure
1 parent 86252eb commit 3d3d240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/fs/test.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,8 +1294,8 @@ test "max file name component lengths" {
12941294
if (native_os == .windows) {
12951295
// U+FFFF is the character with the largest code point that is encoded as a single
12961296
// UTF-16 code unit, so Windows allows for NAME_MAX of them.
1297-
const maxed_windows_filename: [windows.NAME_MAX]u8 = @splat("\u{FFFF}".*);
1298-
try testFilenameLimits(tmp.dir, &maxed_windows_filename);
1297+
const maxed_windows_filename: [windows.NAME_MAX][3]u8 = @splat("\u{FFFF}".*);
1298+
try testFilenameLimits(tmp.dir, @ptrCast(&maxed_windows_filename));
12991299
} else if (native_os == .wasi) {
13001300
// On WASI, the maxed filename depends on the host OS, so in order for this test to
13011301
// work on any host, we need to use a length that will work for all platforms

0 commit comments

Comments
 (0)