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 {
13031303 pub fn listen(self: *StreamServer, address: Address) !void {
13041304 const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0;
13051305 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;
13071307 const sockfd = try os.socket(address.any.family, sock_flags, proto);
13081308 self.sockfd = sockfd;
13091309 errdefer {