aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/install/install.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 156625a09..9f037d401 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -1242,7 +1242,8 @@ const PackageInstall = struct {
const rc = Syscall.system.open(path, @as(u31, std.os.O.PATH | 0), @as(u31, 0));
switch (Syscall.getErrno(rc)) {
.SUCCESS => {
- _ = Syscall.system.close(rc);
+ const fd = @intCast(std.os.fd_t, rc);
+ _ = Syscall.system.close(fd);
return false;
},
else => return true,