Merge branch 'master' into new-sys-unix

This commit is contained in:
gingerBill authored and GitHub committed 2023-10-31 12:16:25 +00:00
commit eb261f5b28
64 files changed
+739 -101

No files matched your search

+2 -2
View File
@@ -63,8 +63,8 @@ read_at_least :: proc(fd: Handle, buf: []byte, min: int) -> (n: int, err: Errno)
if len(buf) < min {
return 0, -1
}
for n < min && err == 0 {
nn: int
nn := max(int)
for nn > 0 && n < min && err == 0 {
nn, err = read(fd, buf[n:])
n += nn
}