aboutsummaryrefslogtreecommitdiff
path: root/lib/std/child_process.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-01 23:31:52 -0500
committerGitHub <noreply@github.com>2023-02-01 23:31:52 -0500
commit6b7ad22981867cbf6ec40d540f5571f276d6801b (patch)
tree4c1665cf0c03fcaa5d6c2a09aa49c49f5b804236 /lib/std/child_process.zig
parente712d5f03e6e3ddde6a4a6f7d2d82e786efd543a (diff)
parent629c3108aa71f94bd26dba8d4f20c9f3a3945bd4 (diff)
downloadzig-6b7ad22981867cbf6ec40d540f5571f276d6801b.tar.gz
zig-6b7ad22981867cbf6ec40d540f5571f276d6801b.zip
Merge pull request #14477 from Vexu/fixes
Improve `@ptrCast` errors, fix some bugs
Diffstat (limited to 'lib/std/child_process.zig')
-rw-r--r--lib/std/child_process.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig
index 4a816c8318..21d7b4fe3e 100644
--- a/lib/std/child_process.zig
+++ b/lib/std/child_process.zig
@@ -1164,7 +1164,7 @@ fn windowsCreateProcessPathExt(
var app_name_unicode_string = windows.UNICODE_STRING{
.Length = app_name_len_bytes,
.MaximumLength = app_name_len_bytes,
- .Buffer = @intToPtr([*]u16, @ptrToInt(app_name_wildcard.ptr)),
+ .Buffer = @qualCast([*:0]u16, app_name_wildcard.ptr),
};
const rc = windows.ntdll.NtQueryDirectoryFile(
dir.fd,
@@ -1261,7 +1261,7 @@ fn windowsCreateProcessPathExt(
var app_name_unicode_string = windows.UNICODE_STRING{
.Length = app_name_len_bytes,
.MaximumLength = app_name_len_bytes,
- .Buffer = @intToPtr([*]u16, @ptrToInt(app_name_appended.ptr)),
+ .Buffer = @qualCast([*:0]u16, app_name_appended.ptr),
};
// Re-use the directory handle but this time we call with the appended app name