File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1294,8 +1294,8 @@ test "max file name component lengths" {
1294
1294
if (native_os == .windows ) {
1295
1295
// U+FFFF is the character with the largest code point that is encoded as a single
1296
1296
// 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 ) );
1299
1299
} else if (native_os == .wasi ) {
1300
1300
// On WASI, the maxed filename depends on the host OS, so in order for this test to
1301
1301
// work on any host, we need to use a length that will work for all platforms
You can’t perform that action at this time.
0 commit comments