Skip to content

Commit 295807d

Browse files
committed
net: use explicit int casts for net.error_eintr etc in the unix implementation too for consistency with the windows one
1 parent 2f59018 commit 295807d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vlib/net/net_nix.c.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ fn init() {
2323
pub const msg_nosignal = 0x4000
2424
pub const msg_dontwait = C.MSG_DONTWAIT
2525

26-
pub const error_ewouldblock = C.EWOULDBLOCK
27-
pub const error_einprogress = C.EINPROGRESS
28-
pub const error_eagain = C.EAGAIN
29-
pub const error_eintr = C.EINTR
26+
pub const error_ewouldblock = int(C.EWOULDBLOCK)
27+
pub const error_einprogress = int(C.EINPROGRESS)
28+
pub const error_eagain = int(C.EAGAIN)
29+
pub const error_eintr = int(C.EINTR)
3030

3131
fn C.unlink(&char) int

0 commit comments

Comments
 (0)