This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/std/os.zig b/lib/std/os.zig | |
index 988ab873d..58f74563e 100644 | |
--- a/lib/std/os.zig | |
+++ b/lib/std/os.zig | |
@@ -2997,7 +2997,7 @@ pub fn sendto( | |
while (true) { | |
const rc = system.sendto(sockfd, buf.ptr, buf.len, flags, dest_addr, addrlen); | |
switch (errno(rc)) { | |
- 0 => return rc, | |
+ 0 => return @intCast(usize, rc), |