diff options
| author | Timon Kruiper <timonkruiper@gmail.com> | 2020-05-06 15:36:52 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-06 13:14:06 -0400 |
| commit | b336dda0765ba345253ed4b25113a5db4386c3f0 (patch) | |
| tree | 7b0bcdf80b0741e53ac937c797d7d6018a7422f1 /lib/std/event | |
| parent | 9c422c28f62cdc5fc2e675318c58b1b3710f0778 (diff) | |
| download | zig-b336dda0765ba345253ed4b25113a5db4386c3f0.tar.gz zig-b336dda0765ba345253ed4b25113a5db4386c3f0.zip | |
Standard library: Fix a regression in loop.waitUntilFdWritableOrReadable
This broke async io on linux.
Regressed in 8ebcca6734e07aea29098ca4c63c0216b3099d0e
Diffstat (limited to 'lib/std/event')
| -rw-r--r-- | lib/std/event/loop.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index 15e7a3481c..04859b6205 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -493,7 +493,7 @@ pub const Loop = struct { pub fn waitUntilFdWritableOrReadable(self: *Loop, fd: os.fd_t) void { switch (builtin.os.tag) { .linux => { - self.linuxWaitFd(@intCast(usize, fd), os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN); + self.linuxWaitFd(fd, os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN); }, .macosx, .freebsd, .netbsd, .dragonfly => { self.bsdWaitKev(@intCast(usize, fd), os.EVFILT_READ, os.EV_ONESHOT); |
