diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-02-21 19:46:53 +0100 |
|---|---|---|
| committer | xackus <14938807+xackus@users.noreply.github.com> | 2020-02-21 19:46:53 +0100 |
| commit | 783e8ad0319b950a1d42d5a93e4fbb9e9df1be10 (patch) | |
| tree | 81b12200e10eb03167c48a7115edca5d6dbac4e4 /lib/std/os.zig | |
| parent | fdae5f5a07c043d9eeefe4933bcfbd03df581fde (diff) | |
| download | zig-783e8ad0319b950a1d42d5a93e4fbb9e9df1be10.tar.gz zig-783e8ad0319b950a1d42d5a93e4fbb9e9df1be10.zip | |
remove @bytesToSlice, @sliceToBytes from std lib
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 0f492a25f2..038839eeaf 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -1778,7 +1778,7 @@ pub fn isCygwinPty(handle: fd_t) bool { const name_info = @ptrCast(*const windows.FILE_NAME_INFO, &name_info_bytes[0]); const name_bytes = name_info_bytes[size .. size + @as(usize, name_info.FileNameLength)]; - const name_wide = @bytesToSlice(u16, name_bytes); + const name_wide = mem.bytesAsSlice(u16, name_bytes); return mem.indexOf(u16, name_wide, &[_]u16{ 'm', 's', 'y', 's', '-' }) != null or mem.indexOf(u16, name_wide, &[_]u16{ '-', 'p', 't', 'y' }) != null; } |
