diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 23:04:19 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 23:04:19 -0500 |
| commit | b220be7a33a9835a1ec7a033e472830290332d57 (patch) | |
| tree | 943f22171b156fc102f36d963890c117de880991 /lib/std/os.zig | |
| parent | d87b13f2f7cef04058537c8bfeb1ceda1a067e73 (diff) | |
| download | zig-b220be7a33a9835a1ec7a033e472830290332d57.tar.gz zig-b220be7a33a9835a1ec7a033e472830290332d57.zip | |
more test regression fixes
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index f083fabb6d..d137617b89 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -2633,7 +2633,7 @@ pub fn realpathW(pathname: [*:0]const u16, out_buffer: *[MAX_PATH_BYTES]u8) Real // Windows returns \\?\ prepended to the path. // We strip it to make this function consistent across platforms. const prefix = [_]u16{ '\\', '\\', '?', '\\' }; - const start_index = if (mem.startsWith(u16, wide_slice, prefix)) prefix.len else 0; + const start_index = if (mem.startsWith(u16, wide_slice, &prefix)) prefix.len else 0; // Trust that Windows gives us valid UTF-16LE. const end_index = std.unicode.utf16leToUtf8(out_buffer, wide_slice[start_index..]) catch unreachable; |
