authorgravatar for git@l4.pmLuna <git@l4.pm> 2019-11-09 15:10:39-03:00
committergravatar for git@l4.pmLuna <git@l4.pm> 2019-11-09 15:10:39-03:00
loge4704f68f850021543ceab86c253806fdded7733
tree66a053afd3e65f2cb2317591b02e3fb7ddc6e04a
parentfc2e8f92b20827d92614226233702830ad07b335

use at-as


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/net.zig+1-1
...@@ -1303,7 +1303,7 @@ pub const StreamServer = struct {...@@ -1303,7 +1303,7 @@ pub const StreamServer = struct {
1303 pub fn listen(self: *StreamServer, address: Address) !void {1303 pub fn listen(self: *StreamServer, address: Address) !void {
1304 const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0;1304 const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0;
1305 const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock;1305 const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock;
1306 const proto = if (address.any.family == os.AF_UNIX) u32(0) else os.IPPROTO_TCP;1306 const proto = if (address.any.family == os.AF_UNIX) @as(u32, 0) else os.IPPROTO_TCP;
1307 const sockfd = try os.socket(address.any.family, sock_flags, proto);1307 const sockfd = try os.socket(address.any.family, sock_flags, proto);
1308 self.sockfd = sockfd;1308 self.sockfd = sockfd;
1309 errdefer {1309 errdefer {